Draw a line and put the points on it. The line can be horizontal and the points do not have to be to scale.
Below are ratios, not actual distances
AP=3 BP=1 where B is between A and P
So
AB=2 and BP=1
Look at the x values, 0,5,10,15
and the y values 5,9,13,17
P(15,17)