ANSWER:
balanced equations are:
Mg + 2 HCl ----> MgCl2 +H2
and
2 NaCl ----> 2 Na + Cl2.
EXPLANATION : SEE PICS