After each cellular respiration cycle there are ATP molecules obtained after oxidizing each glucose molecule
Out of which 2 ATP molecules are obtained from glycolysis cycle, 2 ATP molecules from the Krebs cycle, and about 34 ATP molecules from the electron transport system.
So, in all 2 + 2 + 34 = 38 ATP molecules.