In a diagram,
Where l is the length of the ladder.
Therefore, using the Pythagorean theorem,

Solving for l,

Solve using the quadratic formula,

However, notice that if l=2, l-4 would be negative which is impossible as it is a length.
Therefore, the only valid answer is l=10.
The answer is that the length of the ladder is 10ft