Given:
Focal length, f = 5 cm
Image distance, v = Distance of the lens from the screen = +20 cm (for real image)
Object distance, u = ?
Applying lens formula, we get:
1/v 1/u = 1/f
1/20 1/u = 1/5
Or,
1/u = 1/20 1/5 = 3/20
Or,
u = 20/3 = 6.6 cm
Thus, to form a real image, the object should be placed at a distance of 6.6 cm from the lens.