Any line through the intersection of given line is
(px+qy+r)+λ(lx+my+n)=0
It means the axes y=0 and x=0 at
A(−r+λnp+λl,0),B(0−r+λnq+λm)
Since the triangle is right angled, the circumcentre will be at the mid-point of hypotenuse AB.
If (x,y) be the circmcentre then
2x=−r+λnp+λl,2y=−r+λnq+λm
∴λ(2xl+n)+(2px+r)=0
and λ(2ym+n)+(2qy+r)=0
now eliminate λ from the above two
2xl+n2px+r=2ym+n2qy+r=(−1λ)
Now cross multiply and cancel 2 to get the locus as given.