Pythagoras theorem is the square of two sides gives the square of third side.
Given,
Height of flagpole= 25 ft
base= 5 ft
Let the broken part be x
The remaining part becomes 25-x
Apply Pythagoras theorem
+
=

25 +
=
+
- 2*25*x
25 +
= 625 +
- 50x
(
cancels out on both side)
50x = 625- 25
50x = 600
x = 600/50
x = 12