Given that the focal length is F = 12 cm.
We need to find the position of the object such that the image obtained should be inverted, the same height as that of the object.
In a convex lens, for the image to be inverted and the same height as the object, it should be placed at 2F.
So, the object position will be
Thus, the object position should be 24 cm.