To melt the ice, heat must be extracted from the environment and added to the ice.
(heat; must be extracted; from the environment) (heat; added; to the ice)
heat heat
must be extracted added
from the environment
to the ice