$${n(\mathrm{O_2}) = \frac{0,5}{22,4} = 0,022\, \mathrm{mol}}$$