A rigid and insulated tank of 3m3 volume is divided into two compartments. One compartment of volume of 2m3 contains an ideal gas at 5 MPa and 400 K and while the second compartment of volume 1 m3 contains the same gas at 50 MPa and 500 K. If the partition between the two compartments is ruptured, the final temperature of the gas is: