A spherical mirror forms an erect image three times the linear size of the object. If the distance between the object and the image is $80 \mathrm{~cm}$, What is the focal length of the mirror?
(A) $30 \mathrm{~cm}$
(B) $40 \mathrm{~cm}$
(C) $-15 \mathrm{~cm}$
(D) $15 \mathrm{~cm}$