Let (2,0) be S; let the point lying on the line x=8 closest to P be Q; its co-ordinates are (8,y) as PQ must be perpendicular to the line x=8 and must therefore have the equation y = y (the second y being the y in P(x,y))
so:
Expand that out and equate like terms and all that and it should come out.