Solve the given problem:
Problem: For this problem, include the negative sign for virtual images. An object is located 30cm from a lens with a focal length of 10cm.
Part A: If the lens is concave (diverging), how far from the lens is the image?
Part B: If the lens is convex (converging), how far from the lens is the image?
I need tutor help to solve the above problem.