The cell given here is,
Pt|H2(1 atm),|H+ (0.1 m, 40 mL)||Ag+(0.8 M)|Ag
So according to Nernst equation,
Ecell=E∘cell−2.303RTnFlog[H+][Ag+]
⇒0.9=E∘cell−0.061log0.10.8
⇒0.9=E∘cell+0.054
⇒E∘cell=0.846 V
The molarity of H+ ions after addition of NaOH
=M1V1−M2V2V1+V2=0.1×40−0.05×6040+60
=(4−3)×10−3100=0.01×10−3 M
Now, EMF of cell-
Ecell=−E∘cell−0.061log(0.01)(0.8)
⇒Ecell=0.846−0.06log(0.01)(0.8)
⇒Ecell=0.846+0.06log(0.8)(0.01)
⇒Ecell=0.846+0.06log80
⇒Ecell=0.846+0.06×1.90
⇒Ecell=0.96 V