Balance real equations on a 3D scale: if the atoms do not match, the reaction fails and you see what is left over. Mass is always conserved.