Dear student,
as given:
amount of water is 40g at .
when it will come to 0 degree then amount of energy will release = 40 = 10046.4J
and we know that 333.55J energy is used to convert 1 g ice into water.
so amount of ice converted into water =
Regards