How to solve for specific heat