An object is located 8 cm away from a convex lens. The image is 24 cm away from the lens on the other side. What is the focal length of the lens?
A. 4 cm
B. 6 cm
C. 16 cm
D. 32 cm