In a chemical reaction, the law of conservation of mass states that mass is neither created nor destroyed. This means that the total mass of the reactants will be equal to the total mass of the products.
In the reaction you've provided:
\[ \text{CaCO}_3 \rightarrow \text{CO}_2 + \text{CaO} \]
the reactant is 30 grams of calcium carbonate (CaCO₃).
Since no mass is lost or gained in the reaction, the total mass of the products (CO₂ and CaO) will also be 30 grams.
Therefore, the total mass of the products is 30 grams.