Consider an insulating rigid box divided by a movable partition into two subsystems (volumes VA and VB), each filled with gas. Derive a condition for mechanical equilibrium in terms of the change in entropy of each subsystem with respect to its volume. Use the fundamental equation of thermodynamics to relate this quantity to the pressure.