The ratio in which the line segment joining two points divided by x-axis

The ratio in which the line segment joining two points divided by x-axis