Wooden Beam Against the Wall

A wooden beam is stood vertically against a wall. The length of the beam is 30 units. If the top of the beam slides down the wall 6 units, how much does the lower end slide out horizontally along the ground?

BM 85196 (Mesopotamian tablet), c. 1800 BCE

Click here to reveal the answer