A right triangle with a perimeter of 60 units has an altitude (to the hypotenuse) of length 10 units. Find the sum of the lengths of the two (non-hypotenuse) legs of this triangle.