We know that the magnification is given by:

where h is the height of the object and h' is the height of the image, then in this case we have:

On the other hand we also know that the magnification is given by:

where i is the distance of the image to lens and o is the distance of the object to the lens. From this we have:

Once we have the distance of the image we can use the lens equation to find the focal point:

Therefore the focal distance of the lens is 30.41 cm and this can be round to 30 cm, hence the answer is D