An object is placed 40 mm away from a diverging lens with a focal length of 10 cm. Find the object distance and determine whether the image is upright or inverted and real or virtual.