the hypotenuse of a right triangle measures 29 cm. One leg is 1 cm shorter than the other. What are the lengths of the legs?