According to the law of conservation of mass, the mass of the reactants (before a chemical reaction) is equal to the mass of the products (after the chemical reaction). Therefore, if the mass of the elements before the chemical reaction is 30 grams, the mass after the chemical reaction will also be 30 grams.
So the correct response is:
30 grams