How far from a 20-m-focal length convex mirror must a 2-m object be placed so that it has an:

a) real image of 0.2m
b) virtual image of 0.2m

Isn't there a formula for this?