Richard P. answered 07/07/19
PhD in Physics with 10+ years tutoring experience in STEM subjects
In 'titration', a large excess of NaOH is added to the weak acid. The titration is carried way past the end point.
The number of moles of OH- is 20E-3 x 20 = 0.4 moles
the number of moles of H+ is 20E-3 x 0.2 = 0.004 moles
The H+ ions will neutralize 0.004 moles of OH- ions leaving 0.4 - .004 = .396 moles of OH-
The volume is now 40E-3 , so the concentration of OH- is now .396/40E-3 = 9.9 molar
The pOH is -log(9.9) = .9956 and so pH = 14 - .9956 = 13.0 (with rounding)