When glucose, C6H12O6, reacts with oxygen it produces carbon dioxide and water. If a molecule of glucose reacts completely with three molecules of oxygen, then 30 atoms would be produced because there are 24 atoms in glucose and 6 atoms in oxygen molecules.