Sodium metal :
E=E0+(KE)max ;Ecall0=0.22V
Cell reaction
Cathode : AgCl(s)+e−→Ag(s)+Cl−(aq)
Anode : 21H2(g)→H+(aq)+e−
Overall ; AgCl(s)+21H2(g)→Ag(s)+H+(aq)+Cl−(aq)
Ecell=Ecell0−10.06log[H+][Cl−]
Ecell=0.22−10.06log[10−1][10−1]=0.22+0.12=0.34V
(KE)max=Ecell=0.34eV
So E=2.3+0.34=2.64eV= Energy of photon incident
For potassium metal :
E=E0+(KE)max
2.64=2.25+(KE)max
(KE)max=0.39=Ecell
Cell reaction
Cathode : AgCl(s)+e−→Ag(s)+Cl−(aq)
Anode : 21H2(g)→H+(aq)+e−
Overall : AgCl(s)+21H2(g)→Ag(s)+H+(aq)+Cl−(aq)
Ecell=Ecell0−10.06log[H+][Cl−]
0.39=0.22−0.12log[H+]
0.17=0.12×pH
pH=17/12=1.4166=1.42