C6H12O6 + 6O2 → 6CO2 + 6H2O + energy

How do these equations explain why the total amount of O2 and CO2 remains the same?