Balance the following oxidation-reduction reactions, which take place in acidic solution, by using the "half-reaction" method.
AMg(s) + Hg2+(aq) -> Mg2+(aq) + Hg2(2+)(aq)
AMg(s) + Hg2+(aq) -> Mg2+(aq) + Hg2(2+)(aq)