The equations of the given lines are x
+ y – 5 = 0 … (1)
3x – 2y + 7 = 0 … (2)
The perpendicular distances of P (x, y) from lines (1) and (2) are respectively given by

which is the equation of a line.
Similarly, we can obtain the equation of line for any signs of (X +Y - 5) and (3x -2y + 7)
Thus, point P must move on a line.