Step 1: Use the weighted average formula for molecular weight based on volume fractions.
Given:
\[
\text{Oxygen (O}_2): 21\%, \quad M = 32
\]
\[
\text{Nitrogen (N}_2): 79\%, \quad M = 28
\]
Step 2: Calculate average molecular weight:
\[
M_{avg} = (0.21 \times 32) + (0.79 \times 28) = 6.72 + 22.12 = 28.84
\]