Reaktionsgleichung:

2Mg + CO2 ---> 2MgO + C. (exotherm)

n(C)=m/M ====> n= 10g / 12g/mol = 0.833mol

m(CO2) = n*M = 36.67g