We can find the range of the function by plugging in each value in the domain into the function and listing the output values:
When x = 2, f(2) = 2(2) + 7 = 11
When x = 3, f(3) = 2(3) + 7 = 13
When x = 5, f(5) = 2(5) + 7 = 17
When x = 9, f(9) = 2(9) + 7 = 25
Therefore, the range of the function for the given domain is y = {11, 13, 17, 25}.
Hence, the correct answer is B. y = {11, 13, 17, 25}.