A thin convex lens forms a virtual image when an object is placed on the principal axis at a distance of 12 cm from the lens. When the object is moved away from the lens along the principal axis through a distance of 18 cm, the lens forms a real image. If the magnification of the virtual image is five times the magnification of the real image, then the focal length of the lens is