J.R. S. answered 04/07/20
Ph.D. University Professor with 10+ years Tutoring Experience
I must say that the answer provided by @Philip S. is excellent, but I wanted to offer another approach that might help you if you need to find the answer quicker, as on an exam, for example. The previous answer is really good in that it explains exactly what is going on, and you should understand that. But here is an alternate approach...
Become familiar with the Henderson Hasselbalch equation:
pH = pKa + log [salt]/[acid]
pH = ?
pKa = -log Ka = -log 1.8x10-4 = 3.74
[salt] = [HCO2-] 12 g x 1 mol/68.01 g = 0.176 moles and since this is in 1 L [salt] = 0.176 M
[acid] = [HCO2H]: (250 ml)(0.5 M) = (1000 ml )(x M) and x = 0.125 M (this is simply M1V1 = M2V2 dilution)
Going back to HH we have...
pH = 3.74 + log (0.176/0.125) = 3.74 + log 1.41
pH = 3.74 + 0.148
pH = 3.89