Answer
The ladder is 15 feet away from the wall.
Work Step by Step
Set x to be the distance between the ladder and the wall. Via the Pythagorean theorem, $x^2+20^2=25^2$, thus, $x^2=225$. Taking the square root of both sides brings us to x=15 feet.