Use m1v1=m2v2 equation I am sure you have seen before.
m=molarity
v=volume
(1M HCl)(x mL)=(10^-2)(40+x)
So we need to add HCl from a container of HCl to our solution titration to get a pH of 2.
So left hand side (1M HCl)(x mL) is the container of HCl. It is 1 M and we don't know how much volume we need from it so x mL.
Right hand side
(10^-2)(40+x)
We know we want a concentration of 10^-2 M of H+
(40+x) is the total volume in the solution.
The volume is the tricky part because when you are adding HCl you keep changing the volume hence the +x. The 40 is from 20 mL HCl you added to the 20 mL NaOH to neutralize it. The +x is the mL you need to get to get pH 2.