Let AB be the line segment between the axes and let P (a, b) be its mid-point.

Let the coordinates of A and B be (0, y) and (x, 0) respectively.
Since P (a, b) is the mid-point of AB,

Thus, the respective coordinates of A and B are (0, 2b) and (2a, 0).
The equation of the line passing through points (0, 2b) and (2a, 0) is
