For the given cell, standard reduction potential of Ag+/Ag couple is higher than Mg2+/Mg couple.
Hence, silver electrode will act as cathode and magnesium electrode will act as anode.
E0cell=E0cathode−E0anode
E0cell=0.80−(−2.37)=3.17 V
The cell reaction,
Mg(s)+2Ag+(aq)→2Ag(s)+Mg2+(aq)
By Nernst equation,
Ecell=E0cell−0.0591nlog[Mg2+][Ag+]2
Ecell=3.17−0.05912log0.2[1×10−3]2
Ecell=3.17−0.05912log (2×105)
Ecell=3.17−0.05912×0.301−0.05912×5
Ecell=3.17−0.156=3.014 V
When [Mg2+]=10−6 M
Ecell=E0cell−0.05912log10−6(1×10−3)2
Ecell=3.17−0.05912log (1)
Ecell=3.17 V
The emf of the cell increased from 3.014 V to 3.17 V