a pen in the shape of an isosceles right triangle with legs of length x ft and hypotenuse of length h ft is to be built. if fencing costs $5/ft for the legs and $10>ft for the hypotenuse, write the total cost c of construction as a function of h.