Using pythagorean theorem you can see the relationship between the sides.

Where A is the hypotenuse (across from the 90 degree angle) and B and C are the vertical and horizontal sides.

So,

The right side is a perfect square and thus simplifies to:

Rooting both side we see A, the hypotenuse, is

Does this clarify things for you?