The given equation of pairs of lines are xy+6y−4x−24=0 ⇒(x+6)(y−4)=0 ⇒x+6=0 and y−4=0...(i)
and xy+6x−4y−24=0 ⇒(x−4)(y+6)=0 ⇒x−4=0 and y+6=0...(ii)
So, the vertices of square are (4,4),(4,−6),(−6,−6) and (−6,4).
Now equation of diagonal AC is y−4=1(x−4) ⇒x−y=0
and equation of diagonal BD is y−4=−1(x+6) ⇒x+y+2=0
So, combined equation of the diagonals is (x−y)(x+y+2)=0 ⇒x2−y2+2x−2y=0