what is the distance between (2,3) and (5,7)
This is the rule for any calculation of this type. Note that you can replace X(B) by X(A) and the same for Y because the answers are squared and you'll always get the same value