The base diameter of a metallic cylinder is 18cm and its height is 24 cm. It is melted into cylinders of base diameter 12 cm and height 6 cm. How many such small cylinders are formed?