In the given situation, the object is virtual and the image formed is real. Object distance, u = +12 cm
(a) Focal length of the convex lens, f = 20 cm
Image distance = v
According to the lens formula, we have the relation:

Hence, the image is formed 7.5 cm away from the lens, toward its right.
(b) Focal length of the concave lens, f = −16 cm
Image distance = v
According to the lens formula, we have the relation:

Hence, the image is formed 48 cm away from the lens, toward its right.