For multiple reflections, calculate distances iteratively for each reflection
Step 1: Calculate the positions of images formed by multiple reflections - The distance of the first image from mirror A is \[ 2 \, \text{cm}. \] The distance of the first image from mirror B is \[ 10 + 2 = 12 \, \text{cm}. \] The distance of the second image from mirror A is \[ 10 + 12 = 22 \, \text{cm}. \] The distance of the second nearest image behind mirror A is \[ 18 \, \text{cm}. \]
Final Answer: The distance of the second nearest image is 18 cm.