For the convex mirror, the mirror formula is:
\[
\frac{1}{f} = \frac{1}{v} + \frac{1}{u}
\]
Given:
- \( f = 30 \, \text{cm} \),
- \( u = -30 \, \text{cm} \).
Substitute the values:
\[
\frac{1}{30} = \frac{1}{v} + \frac{1}{-30}
\]
\[
\frac{1}{v} = \frac{1}{30} + \frac{1}{30} = \frac{2}{30}
\]
\[
v = 15 \, \text{cm}
\]
The distance between the two mirrors is equal to the image distance produced by the convex mirror, which is 15 cm.
Thus, the correct answer is (2).