1. First calculate the number of moles or carbon dioxide: (5 g) / (44 g/mole) = 0.114 mole. Next calculate the pressure from the ideal gas law:
  2. First calculate the final volume of the expanded gas then the work done against a constant external pressure: