Let's use a diagram to represent the question below
using Pythagoras theorem we can find how high up the ladder reaches the wall.
[tex]\begin{gathered} x^2=25^2-7^2 \\ x^2=625-49 \\ x^2=576 \\ x=\sqrt[]{576} \\ x=24\text{ ft} \end{gathered}[/tex]The ladder reaches 24 ft up the wall.