Answer is: a. Mg + 2HCl → H₂ + MgCl₂.
Reduction hald reaction: 2H⁺ + 2e⁻→ H₂.
Oxidation half reaction: Mg⁰ → Mg²⁺ + 2e⁻.
In this chemical reaction, magnesium lost two electrons (oxidation, change oxidation number from 0 to +2) and hydrogen gain that two electrons (reduction, change oxidation number from +1 to 0).