Gases in a flask problem explanation