This is a problem from affine geometry, so doesn’t need any concept of distance that mixes x and y coordinates. We can just take each coordinate separately.
(1,5),(−5,−7),(,),=6
Usually in these sorts of problems with unknown B we’re given the ratio AB:BC; here we have the slightly unusual and easier AB:AC.