The chemical reaction between magnesium and carbon dioxide is represented by the equation: $2\text{Mg} + \text{CO}_2 \rightarrow 2\text{MgO} + \text{C}$. Which statement correctly explains what occurs in this reaction?
- ACarbon is oxidised.
- BMagnesium is reduced.
- CNeither oxidation nor reduction happens.
- DThe carbon in carbon dioxide is reduced.