lets denote the distance of the bottom of the ladder from the wall by x, and the distance of the upper end of the ladder from the floor by y, thus:

now differentiate with respect to t:

we now that the bottom end of the ladder is moving with a constant speed of 3 ft/sec, thus:

....