We are given a convex lens.
Here,
Object size, h = + 5 cm
Focal length, f = +20 cm [f is +ve for a convex lens]
Object distance, u = -30 cm
Image distance, v = ?
Image size = ?
For a lens using the lens formula,
i.e., Image distance,
The positive sign of v shows that the image is formed at a distance of 60 cm to the right of optical centre of the lens. Negative sign of h' implies that the image formed is inverted.
Therefore, the image is real and inverted.