The ratio of the initial to final pressure of a given mass of gas is…