J.R. S. answered 04/26/21
Ph.D. University Professor with 10+ years Tutoring Experience
Al3+ + 3e- ==> Al(s) reduction half reaction takes place at the cathode
Mg(s) ==> Mg2+ + 2e- oxidation half reaction takes place at the anode
To equalize electrons, multiply reduction rx by 2 and oxidation rx by 3:
2Al3+ + 6e- ==> 2Al(s) ... balanced reduction reaction
3Mg(s) ==> 3Mg2+ + 6e- ... balanced oxidation reaction
-------------------------------------
2Al3++ 3Mg(s) ==> 2Al(s) + 3Mg2+ ... balanced redox reaction