You can put this solution on YOUR website! . Finding the equation for line AB will give also the line AP, because we want point P to also be on the line.
LINE AB, AP: ;
Applying point-slope form, .
A general point on line AB or AP or BP, is the variable point, ordered pair (x, -(3/5)x+13/5).
You can use the Distance Formula to complete the proportion shown at the top of this posting and it will be in ONE unknown variable, x. It may give two solutions, and one of them will be the answer you want and the other will not be the answer you want. You might like to try this process yourself, so I am not showing the rest of that process (yet).