How would you solve this equation, and most importantly how would you have written down the answer to this equation?

$\displaystyle \sin 2x + \sin x = a + \cos x$, where $\displaystyle a$ is a parameter.

I solved this equation correct, I think, but how to write the final answer, I can not understand.