Hi Coreyt123, welcome!
The substance is put in the water and both together are insulated from the rest of the world, is that it? Then you could write that the total heat is the same before the contact and after equilibrium. Express the heats as a function of the temepratures, solve.
All temperatures are probably mild enough that the heat capacities are constant. If not, for instance if water begins to boil, it gets more complicated.
Just a sub-sub-detail: temperature changes are to be written in kelvin, so a heat capacity is in J/kg/K, not /°C.