The following steps are to be taken to solve the query:
1) Using the distances in the diagram above we get u=−x and v=d−x.
2) Now, apply the lens formula and find the relation between the distances.
1f=1x+1d−x
You will get a quadratic relation between x,
f and d as x2 - xd + fd = 0 -------(1)
3) Substitute the value of d=100 cm
and f=21 cm to find the value of x.
so when we put f=21 and d=100
finally
Substituting these values in equation 1,
we get x1=70 cm and x2=30 cm