Remember, q stands for the amount of heat involved. The solution from there is left to the reader. Note that in this question the 'x' will be the specific heat of the metal. The heat lost by the metal is equal to the heat gained by the water. You may finish the solution.
Heat energy is transferred from the metal to the water.
Note that even though the water is at zero degrees, we will assume it to be liquid. In a problem like this, we would have to have an explicit statement that it was a solid at zero. I put the side losing energy on the left side, but it really doesn't matter. The simultaneous equation approach is left entirely to the reader. The graph below shows a pure substance which is heated by a constant source of heat supplying 2000.0 joules per minute.