Given: focal length of convex lens is 10cm. The plane mirror is at a distance of 20cm from the lens. The image produced by the plane mirror is 5cm inside the mirror.
Find: the distance of the object from the lens.

Since the image formed by the plane mirror is 5cm behind the mirror, the object for the mirror must be 5cm in front of the mirror. Therefore, the image formed by the lens before reflection is at a distance of
20−5=15cm
from the lens.
Now apply the lens formula:
v1−u1=f1
With v=15cm and f=10cm,
151−−u1=101
⇒u1=101−151
u1=301
So,
u=30cmTherefore, the distance of the object from the lens is 30cm.