Heating and cooling can cause matter to change state. Which of the following occurs when heat is added to a system?

A gas becomes a liquid.

A liquid becomes a solid.

A gas becomes a solid.

A liquid becomes a gas.