A steel mass weighing 0.75kg is released down a frictionless ramp of height 5.0m. The steel mass (m) hits a spring made of copper at the bottom of the ramp. The collision results in both the mass m and the spring (M) to have an increase in temperature from 20.00 degrees Celsius to 20.03 degrees Celsius. How high does the steel mass go after the bounce?

I did some looking around for specific heats and found the specific heat for copper to be 0.385 J/G OC and for steel 500 J kg-1 0C-1.

I have almost no clue how to approach this type of problem, and I would appreciate any help I could get.

I created a quick illustration to help: