Given: the situation described in the figure below, with $\alpha=45^\circ$, $\overline{AS}=12$, $\overline{DS}=6$.
Find: $\overline{QS}$.
Question from a math contest. I've tried some ideas but developments are not going through. Hints and answers are welcomed.


Draw $DG$ parallel to $AS$, with $G$ on $QS$ and set $\angle FAD=\theta$, so that $\angle GDQ=45°+\theta$. As $DG=FS$ you have the equation $$ 12-L\cos\theta={L\over\sqrt2}\cos(45°+\theta), $$ where $L=AD$. This can be solved for L: $$ L={24\over3\cos\theta-\sin\theta}. $$ On the other hand $FS=\sqrt{6^2-L^2\sin^2\theta}=12-L\cos\theta$. Plugging here the above result for $L$ and squaring one can solve for $\theta$: $$ \tan\theta={1+4\sqrt6\over19}. $$ Finally, express $QS$ in terms of $L$ and $\theta$ to obtain the final result: $QS=6+3\sqrt6$.