How does burning something that weighs 6 pounds create 20 pounds of waste?
Science!
Let me try and explain it. It's been a while since I did chemestry, so hopefully I get this right:
Most of that comes from the Oxygen in the air already.
Basically, when gasoline burns, the hydrogen and Carbon in the gasoline is broken apart to create energy.
The hydrogen combines with Oxygen to form water (H2O of course) and the carbon combines with oxygen to form Carbon Dioxide.
Carbon atoms have an atomic weight of 12, and Oxygen atoms have an atomic weight of 16, making CO2 weighing 44.
Gas is 13 percent hydrogen and 87 percent carbon. The carbon in a gallon of gasoline weighs 5.5 lbs.
Now, lets figure out how much the oxygen that will become part of the CO2 weighs:
Carbon Dioxide=44
Carbon = 12
Oxygen= 16
so 44/12= 3.7
so 3.7 * 5.5 =20.35
Make sense? I hope so.
In simple terms, the carbon and hydrogen are broken apart. The hydrogen is discarded, bonding with Oxygen to make harmless water. The Carbon bonds with oxygen in the air.
Let's assume that all gasoline is Octane. (its not always.)
Octane is C8H18
you already know you need Oxygen to burn, thats where the oxygen comes from.
Ideally, when gasoline burns, you'll make eight molecules of carbon dioxide (CO2) and nine molecules of water (H2O). The eight molecules of CO2 weigh about three times more than the one molecule of octane you started with.
That doesn't mean you've violated the law of conservation of mass; instead, you've added the weight of the oxygen from the air to the weight of the carbon from the gasoline.
Now, this is in perfection. Perfection doesn't always happen. If you don't have enough oxygen, you'll create Carbon Monoxide instead, as well as other garbage that causes ozone, etc.
EDIT: It's late and I fixed my figures, and added a better explanation. (I hope.)