You can put this solution on YOUR website! Make a right triangle with the 25 ft ladder being the hypotenuse, and 8 feet being the bottom leg.
We know that
a^2 + b^2 = c^2
Now we solve for b...
b^2 = c^2 - a^2
b^2 = 25^2 - 8^2
b^2 = 625 - 64
b^2 = 561
Taking the square root of both sides...
b is about 23.7 feet