In a diagram,
On the other hand, the formula to obtain the distance between two points is

Therefore, in our case,

After setting R=(x,y), we get,

Furthermore, point P lies along RS, and the equation of such segment is

Substitute into the square root equation, so the expression only depends on x,

Solve for x, as shown below

Notice that x=11 would imply that P is not between points R and S but to the 'right' of S.
Therefore, the only valid solution is x=-1.
Calculate the corresponding value of y for x=-1 using the equation of the line RS, as shown below

Therefore, the answer is P=(-1,2)