the focal length of a concave mirror is 30 cm?
It does not say the NATURE of the image. Since the mirror is concave; the image could be REAL or VIRTUAL. To play it safe; we must provide TWO solutions: Solution I: using the mirror formula: 1/30 = 1/Do + 1/3 Do → Do = 40 cm.