Answer:
mNaCl = mNa + mCl
mNa = 20g
mCl = mCl2/2 = 30/2 = 15g
mNaCl= 20+15 = 35g
Because their atoms have the same number of electrons in the highest occupied energy level
The H+ will react with Magnesium to release hydrogen Gas under the equation Mg + 2H+ --> Mg(2+) + H2(g)
Hope this Helps! :)