I need your help. I'm studying physics, but I have a trigonometric problem. I attached a figure where depicts the angles and the unknown $x$. The idea that I want to understand is how to express $x$ in terms of $m$, $n$, $a$ and $b$. Because the solution is $x=m\cdot\sin a + n\cdot\cos b$.
Please, show me the clues to get the solution.

It seems that the radius of the circle is $1$. Assuming that, realize that $\sin b=n$ and $\cos b = m$. We have that $$x=\sin (a+b)=\sin a \cos b+\sin b \cos a=m\sin a+n\cos a$$