The altitude of a right triangle is 5 cm. Let be the length of the hypotenuse and let be the perimeter of the triangle. Express as a function of .