Answer :

Pythagorean theorem! X distance (we’ll call this a) is 8. Y distance (we’ll call this b) is 6
a^2 + b^2 = c^2
8^2 + 6^ 2 = 52
Sqrt 52 = 7.211 = c where c is the distance of your diagonal line