Calorimetry problems are a bit tricky esp in using different units. But here there are no units involved; it is easy. If you have other qns send me a message.
Heat transferred is always either,
Q = m.c.ΔT due to change in temp ΔT; or
Q' = m.L due to phase change.
We assume the unknown object temp Ta > temp of water, Tb
Heat lost by the unknown object,
Q1 = mc.ΔT = ms.cs.(Ta - Tf)
Heat gained buy water,
Q2 = mc.ΔT = mw.cw.(Tf- Tb)
Since there is no other loss or gain, these4s two must be equal
(Principle of calorimetry).
ms.cs.(Ta - Tf) = mw.cw.(Tf- Tb)
Sp heat capacity of the unknown object,
cs = mw.cw.(Tf- Tb)/[ms(Ta - Tf)]
Here cw is sp heat of water = 1 cal/goC or 4.186 J/goC.