The reactions are as shown below.
Mg+air△→MgO(A)+Mg3N2(E)
MgO(A)+H2O→Mg(OH)2(B)CO2−−−→MgCO3(C)
Mg3N2(E)+H2O→(NH3)(D)+Mg(OH)2(B)
1 mole of (B) neutralises 2 moles of HCl.
Mg(OH)2(B)+2HCl→MgCl2+2H2O
Thus, (A) to (E) are (A):MgO(B):Mg(OH)2(C):MgCO3(D):NH3(E):Mg3N2