We use the Pythagorean Theorem for this problem since a ladder on the ground resting against a wall denotes a right triangle.
a2 + b2 = c2
Take derivatives with respect to time.
2a*da/dt + 2b*db/dt = 2c*dc/dt
Since the length of the ladder never changes, we can say dc/dt = 0.
2a*da/dt + 2b*db/dt = 0
a = 4 m
b = 3 m
8*da/dt + 6*db/dt = 0
da/dt = -2/ms
-16 m2/s + 6 m * db/dt = 0
db/dt = 16/6 m/s = 8/3 m/s