Hello, Jay,
I discovered, late in my career, the absolute importance, and helpfulness, of units. I always ignored the edict "keep the units" in the calculations, but, wow, they were right. When you keep you eye on the pesky things, they help giude in problem solving and also prevent really stupid mistakes. In this case they help guide hoiw we'll solve the problem.
Molarity is defined as moles per liter. Therefore, 0.04 M can also be written as 0.04 moles/1 liter. Hmmm. If we are given the volume of air, in liters, this suggests that if we multiply the two (Molarity x Liters), the liters will cancel, leaving just moles.
(0.04 moles CO2)/(1 liter air))*(1.3x1012 liters air) =
(0.04 moles CO2)/(1 liter air))*(1.3x1012 liters air) = (1x10-2 moles)*(1.3x1012) = 1.3x1010 moles CO2
And we didn't need a calculator!
Bob