First get the chemical equation of the reaction of the baking soda and hydrohloric acid.
Second determine how many mole CO2 correspond to how many mole baking soda. Transfer your calculated mole of CO2 from the ideal gas law.
Third calculate the mass by using molar mass of baking soda.