In the provided list, the compounds are:
- Carbon dioxide (CO2)
- Sodium chloride (NaCl)
- Methane (CH4)
These substances consist of two or more different elements that are chemically bonded together.
The other substances in the list are elements or elemental forms:
- Hydrogen gas (H2) is an elemental form of hydrogen.
- Magnesium (Mg) is an elemental metal.
- Potassium (K) is also an elemental metal.
Thus, the compounds in the list are CO2, NaCl, and CH4.