Law of conservation of mass states that, 'In a chemical reaction, matter cannot be created or destroyed'.
In other words, formation of products involves rearrangement transformation of atoms of the elements, hence, the mass of the reactants must be equal to the total mass of the products.