A right triangle has hypotenuse of length 15 . Let $a$ and $b$ denote the lengths of the legs.
a. Use the fact that the hypotenuse is 15 to find $b$ in terms of $a$.
b. Express the perimeter in terms of $a$ alone.
c. Assume now that the perimeter is 35 . Find the lengths of the legs.