In an experiment 14 g of sodium bicarbonate was allowed to react with 10 g of acetic acid. After the reaction was completed, it was found that only 16.67 g of the solution was left because a gas escaped from the container. What was the mass of the gas which escaped into the atmosphere?