pH of buffer solutions is calculated using handerson equation:

Here, the acid is formic acid that is HCOOH and its conjugate base is HCOO- which is given as the salt, HCOONa.
Moles of acid could be calculated from its given molarity and volume as:

The pH is given as 3.4. Pka for formic acid could be found in the data table which is 3.75.
Let's plug in the values in the equation and solve for the moles of sodium formate.

So, 0.045 moles of HCOONa are required.