As we move along the line segment from A to B, the x-coordinate increases by 10 and the y-coordinate increases by 5.
Since we are dividing the line segment in the ratio 2:3, we are dividing AB into 2+3 = 5 equal segments. P is 2/5 of the way from A to B.
Let P = (x,y).
x = -4 + (2/5)(10) = 0 and y = -1 + (2/5)(5) = 1
So, P = (0,1)