I believe you just look at your periodic table for this value. I don't think there is any math involved.
Therefore one mole of Mg = 24.305g.
NaCI is the answer, in what my teacher taught me.
Hope I helped :)
Energy of reactants is higher than the products , I am not sure through