A flask P contains 0.5 mole of oxygen gas

A flask P contains 0.5 mole of oxygen gas. Another flask Q contains 0.4 mole of ozone gas. Which of the two flasks contain greater number of oxygen atoms?

1 molecule of oxygen = 2 atoms of oxygen
1 molecule of ozone = 3 atoms of oxygen
In flask P, 1 mole of oxygen gas = 6.022 X${{10}^{23}}$ molecules
.’. 0.5 mole of oxygen gas = 6.022X ${{10}^{23}}$ x 0.5 molecules= 6.022X ${{10}^{23}}$ x 0.5x 2 atoms
= 6.022 x ${{10}^{23}}$ atoms
In flask Q, 1 mole of ozone gas = 6.022 X ${{10}^{23}}$ molecules
0.4 mole of ozone gas = 6.022 X ${{10}^{23}}$ X 0.4 molecules = 6.022 X ${{10}^{23}}$ X 0.4 X 3 atoms
= 7.23 X ${{10}^{23}}$ atoms
.’. Flask Q has greater number of oxygen atoms as compared to the flask P.