The thermal energy of matter increases when _____.

heat flows out of the matter

the mass of the matter decreases

the temperature decreases

heat flows into the matter