Heres goes the question:

A ladder AB,of length 13m, rests against a vertical wallwith its foot on a horizontal floor at a distance of 5m from the wall. When the top of the ladder slips down a distance ofxmetreson the wall, the foot of the ladder moves out byx metres.Find the value of x.

Swift replies will be appreciated. Thanks in advance.