In accordance with the law of physics, a gas will expand when the pressure around that gas is reduced. This…