Suppose that, in the triangle ABC, the hypothenuse is AC. Let's call its length [tex
] \overline{AC} = x [/tex].
The hypothenuse is 2 ft longer than one of the legs (say AB, for example). This means that 
Finally, we can find the other leg with the pythagorean theorem:

So, the perimeter (i.e. the sum of the sides) is given by

Isolate the square root to get

Divide all sides by 2:

Square both sides:

This equation has solutions
or
. These solutions lead to, in the first case,

In the second case, you have
