A thermometer has a mass of 31.0g, a specific heat capacity of C=815J/(kg.C degrees) and a temperature of 12.0 degrees celsius. It is immersed in 119g of water, and the final temperature of the water and thermometer is 41.5 degrees celsius. What was the temperature of the water before the insertion of the thermometer?