The diagonal of this rectangular box serves as the hypotenuse of the 2 right triangles that exist within this rectangle. The length is one leg, the hypotenuse is...well, the hypotenuse, so we need to use Pythagorean's Theorem to find the missing leg.