Using the mass of calcium carbonate $m(\ce{CaCO3}) = \pu{0.500 g}$, what volume of carbon dioxide $V(\ce{CO2})$ (in $\pu{mL})$ could theoretically be obtained if the reaction progressed to completion? Assume that the pressure was $\pu{101.3 kPa}$ and the temperature was $\pu{22.5 ^\circ C}$ and that the gas was behaving ideally $(R = \pu{8.314 kPa L mol-1 K-1})$.
I know that I will work with $$pV = nRT$$ and to bring the $n$ (amount of substance), I have to divide the mass by the molar mass and I assumed that $\ce{CO2}$ mass will be $\pu{0.5 g}$ as well because $\ce{CaCO3}$ will give $\ce{CaO + CO_2}$ so the ratio is $1:1$ so $\ce{CO2}$ mass is $\pu{0.5 g}$, but my problem is that when I bring the amount of substance it should be for $\ce{CO_2}$ or $\ce{CaCO3}$? Because it will differ, $\frac{0.5}{44.01}$ or $\frac{0.5}{100.09}$, that's what I am stuck on.