The quinhydrone electrode acts as the anode and the silver electrode acts as the cathode.
Anode reaction
QH2→Q+2H++2e−
EQ/QH2∘=+0.7 V
Cathode reaction
2Ag++2e−→2Ag
EAg+/Ag∘=+0.8 V
The standard cell potential is
Ecell∘=Ecathode∘−Eanode∘
Ecell∘=0.8−0.7=0.1 V
The overall cell reaction is
QH2+2Ag+→Q+2H++2Ag
For the quinhydrone electrode, [Q]=[QH2], therefore they cancel out in the reaction quotient. Also, [Ag+]=1 M.
The Nernst equation becomes
Ecell=Ecell∘−20.06log[H+]2
Substituting the given values,
0.4=0.1−0.03log[H+]2
0.4=0.1−0.06log[H+]
Since
pH=−log[H+]
we get
0.4=0.1+0.06(pH)
0.3=0.06(pH)
pH=5
The solution in the anodic compartment contains NH4X, a salt of a weak base and a strong acid.
For such a salt,
pH=7−21pKb−21logC
Given,
pH=5
C=0.01 M=10−2 M
Substituting,
5=7−21pKb−21log(10−2)
5=7−21pKb+1
5=8−21pKb
21pKb=3
pKb=6
Therefore,
pKb=6