An object 50 cm tall is placed on the principal axis of a convex lens. Its 20 cm tall image is formed on the screen placed at a distance of 10 cm from the lens. Calculate the focal length of the lens.