In the figure a container is shown to have a movable (without friction) piston on top. The container and the piston are all made of perfectly insulating material allowing no heat transfer between outside and inside the container. The container is divided into two compartments by a rigid partition made of a thermally conducting material that allows slow transfer of heat. The lower compartment of the container is filled with 2 moles of an ideal monatomic gas at 700 K and the upper compartment is filled with 2 moles of an ideal diatomic gas at 400 K. The heat capacities per mole of an ideal monatomic gas are CV = R, CP = R, and those for an ideal diatomic gas are CV = R, CP = R.

Know your College Admission Chances Based on your Rank/Percentile, Category and Home State.
Get your JEE Main Personalised Report with Top Predicted Colleges in JoSA
Now consider the partition to be free to move without friction so that the pressure of gases in both compartments is the same. Then total work done by the gases till the time they achieve equilibrium will be
n1Cp1 (T – T1) = n2Cp2 (T2 – T)
2 × R (T – 400) = 2 × R (700 – T)
12T = 6300
T = 525 K
W + U = 0
U = n1Cv1 T1 + n2 Cv2 T2
= 2 × R (525 – 700) + 2 × R × (525 – 400) = – 525R + 625 R = 100 R
W = –100R
Consider the partition to be rigidly fixed so that it does not move. When equilibrium is achieved, the final temperature of the gases will be
2Cp (T – 400) = 2 Cv × (700 – T)
T = 490 K