Krebs cycle..no actually in aerobic respiration.. 30 ATP are made (from 1 glucose molecule).... 3 NAD 1FAD and 1 ATP is given from krebs cycle...and 1 NAD before the cycle (i.e. when pyruvate --->acetyl coA)..... each NAD gives 3 ATP.. and the FAD gives 2 ATP.. so we have a total of 12 ATPs from the hrebs cycle and 3 from before it.. makes 15.. one glucose molecule gives 2 pyruvate therefore 15*2 = 30
Glycolysis produces 10 but takes 2 too.. therefore a net outcome of 8
hence total amount of ATP produced = 38
EDIT: cleared the doubt my self ..modified in case someone has the same doubt