Working out pH of solution when excess NaOH is added
The excess NaOH is, indeed 0.005 moles. The total final volume is 30 ml + 20 ml = 50 ml = 0.05 L. Thus, the final concentration is 0.005 moles/0.05 L = 0.1 M