If P was on segment AB and AB = 2*PB, then P would be the midpoint.
Or if we had right triangle PAB where AB = 2*PB, then we'd have a 30-60-90 triangle.
short leg = PB
long leg = AP
hypotenuse = AB
For any 30-60-90 triangle template, the hypotenuse is twice as long compared to the short leg.
Even if A, B and P are the points on one line (are collinear), it does not follow
from AB = 2PB that P is the midpoint of AB.
Because point P can lie outside of the interval AB.
Only if there is an additional information that point P is between points A and B
in the same line, then from AB = 2PB we can conclude that P is the midpoint of AB.