After t seconds the distance between the bottom of the ladder and the wall is t metres. Let x denote the distance that the top of the ladder has moved after t seconds. Now use the theorem of Pythagoras to obtain a quadratic equation in x and t. Then use implicit differentiation to obtain a formula for dx/dt in terms of x and t, and solve the quadratic to express this in terms of t alone.