When the volume of a given mass of gas is halved and its temperature doubled,…