Dry hydrogen is trapped by pellet of mercury in a uniform capillary tube closed at…