J.R. S. answered 12/13/20
Ph.D. University Professor with 10+ years Tutoring Experience
Mg2+ + 2e- ==> Mg(s) ... reduction half reaction Eºred = -2.38 V
2K(s) ==> 2K+ + 2e- ... oxidation half reaction x 2 to equalize electrons Eºred = -2.92 V
____________________________
Mg2+ + 2K(s) ==> Mg(s) + 2K+ ... overal redox
Eºcell = -2.38 - (-2.92) = 0.54 V