This is called the pythagorean theorem: a^2 + b^2 = c^2. Basically, the sum of one side squared + the side of another side squared = the length of the longest side (or hypotenuse).
We have to do the following math: 4 * 4 = 16 6 * 6 = 36 16 + 36 = 52.