The calculation for determining the number of moles from a specific mass of a substance is as follows:
\[ \text{Number of moles} = \frac{\text{Mass of substance (g)}}{\text{Molar mass (g/mol)}} \]
For carbon dioxide (CO2), the values are:
- Mass: 22 g
- Molar mass: 44 g/mol
Applying these values to the formula:
\[ \text{Number of moles of CO}_2 = \frac{22\, \text{g}}{44\, \text{g/mol}} = 0.5\, \text{mol} \]
Consequently, 22 g of carbon dioxide contains 0.5 moles.