One mole of a gas at STP occupies 22.4 l. Which means 6.022*1023 molecules of any gas occupy same volume at STP.
Or equal number of molecules of any gas occupy same volume at STP.
So 10 molecules of methane will occupy same volume as 10 molecules of CO2,