According to kinetic theory of gases, the pressure exerted by the gas on the wall…