We find the directed line segment AB, as follows:
We subtract the x and y component of the first coordinate from the second one, that is:
Now, we proceed as follows:
We will use the ratio 2:1 to solve in the following expression to find the x and y coordinates for the point P:
This expression is for a rate of the form a:b.
That is:
From this, we have that the point p is (3, 0).
***
You can only find the coordinates of the P point by using the formula