Cells in series carry the same charge, so the same number of moles of electrons pass through both.
(a) From the silver cell (Ag++e−→Ag):
n(e−)=n(Ag)=1081.08=0.0100 mol
Moles of M deposited:
n(M)=65.40.327=0.00500 mol
Electrons per atom of M =0.0100/0.00500=2, so the ion is M2+ (M2++2e−→M).
(b)
Q=n(e−)×F=0.0100×96500=965 C
t=IQ=0.500965=1930 s≈32.2 min