(100g)(.473J/g°C)(x-62°C) =-(500g)(4.184J/g°C)(x-22°C)

Q = mass•specific heat•change in temperature

Can someone show me how to solve this so i can teach myself before my test on Monday
..thanks for your time

100*.473*x - 100*.473*62 = -500*4.184*x + 500*4.184*22

Combine terms and solve for x.