Two objects are placed on the principal axis of a thin converging lens. One is 10 cm from the lens and the other is on the other side of the lens at a distance of 40 cm from the lens. The image of both objects are in the same place. The focal length of the lens is