Problem:
Two plane mirrors $OP$ and $OQ$ are inclined at an acute angle (diagram is not to scale). A ray of light $XY$ parallel to $QO$ strikes mirror $OP$ at $Y$. The ray is reflected and hits mirror $OQ$, is reflected again and hits mirror $OP$ and is reflected for a third time and strikes mirror Magic Square Association $OQ$ at right angles at R, as shown. The distance $OR$ is $5$cm. The ray XY is d cm from the mirror $OQ$. What is the value of $d?$
My thoughts: the answer says its 5, but I am not sure how to specifically construct the triangles or angles and sides to be able to solve the question. I did write a bunch of angles but Im not sure how to proceed. Can anyone help me solve this problem?





Let the first, second and third reflection take place at the points $Y, S$ and $T$. respectively. Define point $V$ to be the foot of the perpendicular from $Y$ to $OQ$.
Observe, $$\theta=\angle TOR=\angle OYS=22.5^{\circ}~~\text{and} ~~\angle SYV=\angle YSV=\angle TSR=45^{\circ}$$ Hence, $$TR=RS=5\tan \theta\implies \tan\theta=\frac{VY}{OV}=\frac{d}{5+5\tan\theta+d}$$