Two plane mirrors A and B are aligned parallel to each other, as shown in the figure. A light ray is incident at an angle of 30∘ at a point just at the edge of A. The plane of incidence coincides with the plane of the figure. The maximum number of times the ray undergoes reflection (including the first one) before it emerges out is