one leg of a right triangle is 42 inches longer than the other leg, and the hypotenuse is 78 inches. find the lengths of the legs of the triangle