Glycolysis breaks down glucose into 2 Pyretic Acid Molecules in the Cytoplasm, releasing 2 ATP and Hydrogen
The Krebs Cycle takes Citric Acid which is a derivative of Pyruvic Acid and converts this through 4 cycles into Hydrogen, carbon dioxide and water in the Mitochondrial Matrix.
The Electron Transport Chain takes the electron carrying Hydrogens and releases the energy as ATP and water in the Mitochondrial Membranes.