Cellular respiration is a process that has three stages to produce 34-38 ATP from a glucose molecule. The processes involved are known as glycolysis, Krebs cycle, and oxidative phosphorylation.
The first one, glycolysis, occurs in the cytoplasm of the cell, after the movement of glucose inside by the action of insulin. This is carried out using glucose, 2 ATP, and 2 NAD+ as reactants to produce 2 molecules of pyruvate, and 8 ATP.
The second one, the Krebs cycle, occurs in the mitochondrial matrix, and from a molecule of 2 acetyl-CoA from 2 pyruvates, 6 NAD+, and 2 FAD, it produces 4 CO2 molecules, 2 GTP that becomes 2 ATP and produces 2 FADH and 10 NADH, which will be used in the following step of the process.
The third one, oxidative phosphorylation, occurs in the mitochondrial membrane, and it from 8 NADH, 4 FADH2, and 6 O2, produces 8 NAD+, 4 FAD+, 6 water molecules, and between 24 to 28 ATP molecules.