These ladder slipping problems are among the most over-used with regards to related rates.

We know y=12, dx/dt=3, and can easily find x.

If the top of the ladder is 12 feet off the ground, then the base is feet from the wall.

differentiate wrt time:

Now, enter in your knowns and solve for dy/dt.