what andrew said is right...but i will explain it to u......
when steam is to be converted into water it has to lose heat.....but one important thing u have to notice is that...when a substance is changing its phase its losing more heat than when a small temperature change occurs.....
first lets take steam from 200 to equilibrium..ie 100 degrees......for that heat required is equal to....Q=.4*c*(373-473)........now,steam has to spend some energy to convert steam into water.....for that Q1=L*.4...where L is the latent heat of vapourization...........then add Q & Q1......remember the added value will be negative as the heat energy is lost here and not gained.....remember to convert grams into kilograms for getting answer in SI units...........do the same for the second question as well....here Q maybe positive as here we need more energy to convert a solid to vapour.......

finally just remember this.......we need a lot of energy to change the phase of a substance......and always calculate Q by dividing it into various Qs wherever a phase change is taking place....ok yaaaaaar