Let the point on X-axis be P(x,0) since the y-coordinate is always zero on X-axis.
Given A(2, 3) and B(5, 6)
Let P divides the line segment joining the points (5, 6) and (-1, -4) in the ratio m:1
Coordinates of P=(mx2+x1/(m+1),my2+y1/m+1)
Comparing both sides
Therefore, P divides the line segment joining two points in the ratio 3 : 2 externally.