An object is kept at a distance of 16cm from a thin lens and the image formed is real. If the object is kept at a distance of 6cm from the same lens, the image formed is virtual. If the sizes, of the images formed are equal, the focal length of the lens will be