A concave mirror has a focal length of 30.0 cm. The distance between an object and its image is 45.0 cm. Find the object and the image distances, assuming that (a) the object lies beyond the center of curvature of the mirror and (b) the object lies between the focal point and the mirror.