how do i solve spefic heat problems?

It totally depends on the problem. However, you need to memorize

heatchange=mass*specificheatcapacity*tempchange.