(a) we can solve the problem by using the mirror equation:

where
f is the focal length of the mirror

is the distance of the object from the mirror

is the distance of the image from the mirror.
For the sign convention, f is taken as negative for a convex mirror and

is taken as negative if the image is located behind the mirror, as in this problem. So we have


and re-arranging the mirror equation we can find the distance of the object from the mirror:

from which we find

(b) The magnitude is defined as the ratio between the size of the image and the size of the object, which is also equal to the negative of the ratio between the distance of the image and the distance of the object from the mirror:

Using what we found at point (a), the magnification in this problem is

where the positive sign means the image is upright.