Where m is the gradient and c is the y-intercept.
To find m, use the following:
Using the coordinates that have no unknowns.
Then find the y intercept by plugging one of the coordinates into your new equation and solve for c.
One you've done that, put the points (x,3) into the equation and solve for x.