I cannot figure out these two questions.

1. The length of one of the legs of a right triangle is 3 ft. Express the perimeter, p, of the triangle in terms of the length, L, of the other leg.

I have gotten h=3+L, but what do I do from there?

2. (secθ-tanθ)(secθ+tanθ)