A sample of a diprotic weak acid (H2A) was titrated with 0.0500M NaOH

A sample of a diprotic weak acid (H2A) was titrated with 0.0500M NaOH (a strong base) The initial acid solution had a concentration of 0.0250M and had a volume of 50.0mL. For the acid Ka1=1.010-3 and Ka2=1.010-6.

a) calculate Ve1 and Ve2
b) Calculate the pH after 40.0mL of NaOH was added
c)Calculate the pH after 40.0mL of NaOH was added