Number of moles of a substance is equal to the ratio of given mass and its molar mass.
Mass of one mole CO2=12+(2×16)=44 and one mole N20=(2×14)+16=44.
Let the ratio constant be ' w '.
Number of molecules is equal to the product of number of moles of compound and NA.
Hence, ratio of number of molecules of CO2 (g) and N2O g) is (5w×NA)/44(2w×NA)/44=2:5.