The image of an extended object placed in front of a concave mirror is formed at a distance of 40 cm from the object. lf the image is 3 times bigger than the object, the magnitude of focal length of the mirror is
(A) 15 cm
(B) 10 cm
(C) 20 cm
(D) 5 cm