4B. In a right-angled triangle, the length of the height drawn to the hypotenuse is 4, and the length of the median from the right angle is 5. Calculate the sum of the lengths of the legs of this triangle.