A right triangle has a leg with a length of 18 and a hypotenuse with a length of
36. Bernie notices that the hypotenuse is twice the length of the given leg,
which means it is a 30–60–90 triangle. If Bernie is right, what should the
length of the remaining leg be? Explain your answer. Confirm your answer using
the Pythagorean theorem.