Dry oxygen is trapped by a pellet of mercury in a uniform capillary tube which…