Definition: Given a scientific passage and an answer, generate a question for the given answer.
Input: Passage: Matter can exist in one of several different states, including a gas, liquid, or solid state. States of matter differ in the amount of energy their molecules have. When matter recycles, it changes state by gaining or losing energy. Answer: energy
Output:
When matter recycles and changes state what does it gain or lose by doing so?