Find the general value of $x$ satisfying the following pair. $$\sin (x)=\dfrac {1}{2} \quad\text{and}\quad \cos (x)=-\dfrac {\sqrt {3}}{2}$$
My Attempt: $$\sin (x)=\dfrac {1}{2}$$ $$\sin (x)=\sin (\dfrac {\pi}{6})$$ $$x=n\pi + (-1)^n\dfrac {\pi}{6}$$ Similarly for $\cos (x)=-\dfrac {\sqrt {3}}{2}$, $x=2n\pi\pm(\dfrac {\pi}{6})$
How do I get the general values satisfying both of them?

Hint: You can also solve $$\tan(x)=-\frac{\sqrt{3}}{3}$$