Suppose P(x, 2) divides the line segment joining the points A(12, 5) and B(4, −3) in the ratio k : 1.
Using section formula, we get
Coordinates of P =
and
Now,
So, P divides the line segment AB in the ratio 3 : 5.
Putting k = in , we get
Thus, the value of x is 9.