So for this we will be using the pythagorean theorem, which is [tex]a^2+b^2=c^2[/tex] . The a and b variable stand for the legs of the triangle and c represents the hypotenuse.
So to start, replace a and c variable with 39 and 65. Your equation should look like this: [tex]39^2+b^2=65^2[/tex] . From here we can solve.
Solve the exponents to get [tex]1521+b^2=4225[/tex]
Subtract 1521 on each side to get [tex]b^2=2704[/tex]
Square root each side and your answer should be [tex]b=52[/tex]km