I think the law in question here is the law of conservation of mass. All chemical equations have to adhere to the law of conservation of mass, that states that matter cannot be created or destroyed; thus, there must be the same number of atoms of each element on each side (right and the left side)of the chemical equation.