Given:
mass of sodium acetate = 18.0 grams
volume of acetic acid = 510 ml
concentration of acetic acid = 0.160 M
Solve for the ph of the buffer:
pH = pKa + log [salt]/[acid]
pKa of acetic acid = 4.76
M of sodium acetate = 82g/mol
pH = 4.76 + log [18g/82g/mol] / [0.160M*(510/1000)]
pH = 5.19