21. As shown in Fig, 1, a container with africtionless movable partitionsfixed volume at constant temperature isdivided into three compartments (A, B, Hzand C) by two partitions, which aremovable without friction. CompartmentsA and C are filled with an equal amount of mass of gas X and Y. When two partitions stop sliding, the density of X is equal tothat of Y. Which of the following statements is correct?