Using the principal of calorimetry,
Heat gained by the ice to become water at 40∘C is equal to heat lost by the steam to become water at 40∘C
miceLf+mice(40−0)Cw=mstreamLv+mstream(100−40)Cw
(200×80)+(200×1×40)=M(540)+M×1×(100−40)
⇒600M=24000
⇒M=40 g
Hence, 40 is the correct answer.