The oxidation state of the atoms of any molecule in the element state equals zero. H2 is is the element state, therefore the oxidation state of the whole molecule equals zero and the oxidation states of the atoms also equals zero. Answer letter D is the correct answer.
Magnesium has an oxidation state = zero before it undergoes the reaction and is oxidized. The oxidations state of the magnesium in Mg(OH)2 is +2.
The answer is B.Let it sit