The equation of the pair of lines through the point (a, b) parallel to the coordinates axes, is
(x−a)(y+b)=0
(x−b)(y−a)=0
(x−a)(y−b)=0
(x+a)(y−b)=0
The equations of lines parallel to the coordinate axes and passing through (a, b) are x = a and y = b. So, their combined equation is (x - a) (y - b) = 0.