HELP PLEASE!!

A 1.0 kg sample of metal with a specific heat of 0.50 KJ/KgC is heated to 100.0C and then placed in a 50.0 g sample of water at 20.0C. What is the final temperature of the metal and the water?