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=3/2 R, Cp=5/2 R, and those for an ideal diatomic gas are Cv=5/2 R, Cp=7/2 R.
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