In the right triangle, the altitude is 5 units and the longest segment of the hypotenuse of 7 units. Find the length of the hypotenuse.