Surface of a rubber ball is similar to a convex mirror.
Diameter = 12 cm
$$\Rightarrow$$ Radius = 6 cm
2f = R
$$f =\dfrac{R}{2}=\dfrac{6}{2} = 3 cm$$
$$u= \dfrac{12}{2}=6 cm$$
$$v=\dfrac{uf}{u-f}=\dfrac{-6 \times 3}{-6 -3}=\dfrac{-18}{-9}=2cm$$
Mirror is a convex, so image is virtual.