A sealed bottle containing some water is made up of two cylinders A and B of radius 1.5 cm and 3 cm respectively, as shown in the figure. When the bottle is placed right up on a table, the height of water in it is 15 cm, but when placed upside down, the height of water is 24 cm. The height of the bottle is