So this is basically a right triangle.
There is a picture better showing what it would look like
The equation to find one side is

b is one line next to the right angle(x)
a is the other line by it (5)
c is the hypotenuse (13)
Plug the numbers in


x=12km