This is a little complicated question and I think I have the answer. Take a look,
Given: 20ml of 1M NaOH, find Volume of 1M HCl to make pH = 2 solution.
Lets assume, it requires X ml of HCl to make pH = 2.
It means, at the end [H+] = 10^-2 (from pH= -log[H+])
Because, HCL and NaOH are strong acid and base, therefore, they completely dissociate.
Now, number of moles in 20 ml NaOH = 20 x 10^-3 x 1 mole/L
= 20x10^-3 moles of NaOH
number of moles in X ml of HCl or H+ = X x 10^-3 x 1 mole/L
We know the solution is acidic, therefore the remaining moles of H+ in solution = X x 10^-3 - 20 x 10^-3
Now the molarity of this solution = number of moles/total vol of solution
[H+] = (X - 20) x 10^-3/(X + 20) x 10^-3
and we know for pH = 2, [H+] = 10^-2
therefore,
10^-2 = (X - 20) x 10^-3/(X + 20) x 10^-3
solve for X and it is 20.4 ml
One thing to note, see how quickly solution become so acidic. It would have required 20ml of 1M HCl to neutralize 20 ml of NaOH and pH would have been 7. By just adding another 0.4 ml, the solution pH = 2.
I hope this helps.
Sailinx