A diagram might help visualize what is going here. I can't do diagrams so hopefully I can explain this:
You are being asked to differentiate an equation with respect to another variable, in this case "t". This is no different than differentiating with respect to "x" or "y" or any other variable. We differentiate with respect to "t" because we are interested in knowing how the side of the ladder changes with respect to time.
So what do we know:
We know we have a 5M ladder resting against a wall. This forms a classic right triangle.
We know that when the "top" of the ladder (the part that is resting against the wall) is 3M above the base of the wall (or from the floor), the bottom of the ladder (that forms what we would normally refer to as the base of our triangle) is changing at a rate of

.
The first thing we want to do is set up a general expressing for our triangle. As calculus said you know that:
Where X is equal to the base of our triangle (formed by the bottom of the ladder to where the wall meets the ground)
Where Y is equal to the height of our triangle (formed by the top of the ladder where it meets the wall)
Where H is the hypotenuse of our triangle (formed by the length of the ladder).
We are looking for how fast the top of the ladder is sliding down the wall, and this is why we differentiate our equation with respect to t=time: t is our variable here that x and y depend on.
I'm not sure how you got what you got but we are differentiating:
You should be able to take it from there substituting the correct rate of change given in the problem, and solving for the remainder.