Ten kilograms of a substance has a latent heat of 1000 J/kg. How much energy does it take to change the phase of this substance?