Answer:
The molecules of solid CO2 are much closer together than the molecules of CO2 gas.
In order to get HgO you would need 2Hg+1O2=2HgO. Since oxygen is diatomic you need two when it stands alone causing you to need two mercuries to balance out the reactants and the product I hope this helps