A 24 cm long rectangular bar is composed of two uniform 12 cm bars of different materials, A and B, with the same cross-sectional area as shown. The density of material B is twice the density of material A. The long bar is cut through its center of mass and perpendicular to its long axis. What is the ratio of the mass of the left piece to the mass of the right piece?