There's really no way to solve this problem apriori (unless you can use tools like lagrange polynomials to interpolate points), so I'll just tell you how to approach problems like this.
First of all, we may try to see if the dependence is linear: the input is always increased by 4 (4, 8, 12, 16,...) and the output increases by 2: (5, 7, 9, 11). So, the answer is yes.
Now that we know that these points lay on a line, we can conclude the exercise in several ways:
[tex]\dfrac{x-x_2}{x_1-x_2}=\dfrac{y-y_2}{y_1-y_2}[/tex]
Plug in two points of your choice and you'll get the same answer.
Of course, as a third alternative, you could just have eyeballed the answer: the fact that x grows twice as fast as y could have hinted the x/2 part, and then you could have seen that y is always 3 more than half of x, again leading to y=x/2+3.