Answer:
The required formula is
.
Explanation:
The given equation is

where,
1. f is the focal length of the lens.
2. p is the distance of the object from the lens.
3. q is the distance of the image from the lens.
We have to rearrange the formula for q.
Multiply both sides by fpq.



Subtract fq from both the sides.

Take out the common factor q.

Divide both the sides by (p-f)

Therefore the required formula is
.