Well I think I can help you out ...
if you assume input x=2
the output will be as following :
y= -1/3(2)+2
=-2/3+2
=-2/3+6/3
=(-2+6)/3
=4/3
=1.333
Let

If M is the midpoint, the x and y coordinates of M are the average of the x and y coordinates of P and Q:

We can solve this expression for the coordinates of Q:


Plug in the values for the coordinates of M and P to get


Those are the answers
2x-2
6x+9
7x+35
10x-5y