I should have also mentioned, that the production of CO2 is not exactly equal to the consumption of O2. It depends on the metabolic rate, and can be slightly different than 1/1. Further, the CO2 is transfered/stored in several forms - some gets back into lungs, some is bind to hemoglobin, some dissolved in blood and other liquids, and the most of it is stored in form of bicarbonate.