In prokaryotic cell during glycolysis, 2 ATP is consumed and 4 ATP and 2 NADH is produced from each glucose, and each NADH produces 3 ATP, thus a total of 4 + 6 ATP = 10 ATP and net production of 10 - 2 ATP = 8 ATP is produced, and 30 ATP in kerb cycle and pyruvic acid oxidation, thus net production of 30+8 =38 ATP occurs.