When carbon is burned in air, it reacts with oxygen to form carbon dioxide. When 24.0 g of carbon were burned in the presence of 82.9 g of oxygen, 18.9 g of oxygen remained unreacted. What mass of carbon dioxide was produced?