The heater supplies 1.0 kW=1000 J every second, so the heat supplied in each stage is 1000× (time taken).
(a) From 0 to 40 s, the solid warms from −20 ∘C to 0 ∘C:
ssolid=mΔTΔQ=1.0×201000×40=2.0×103 J kg−1 K−1
(b) From 40 s to 370 s the temperature stays at 0 ∘C: the sample is melting. The flat part lasts 330 s:
Lf=mΔQ=1.01000×330=3.3×105 J kg−1
(c) From 370 s to 790 s (420 s), the liquid warms from 0 ∘C to 100 ∘C:
sliquid=1.0×1001000×420=4.2×103 J kg−1 K−1
These values (melting point 0 ∘C, Lf≈3.3×105 J kg−1, s≈2000 for the solid and 4200 for the liquid) match ice and water, so the sample is ice. Notice that the solid line is steeper than the liquid line, because ice has about half the specific heat of water.