I don’t know how to solve this

Answer:
[tex]\theta =2\pi k,\ \ k\in Z\ \\\text{or}\ \\\theta=-\dfrac{2\pi}{3}+2\pi k,\ \ k\in Z[/tex]
Step-by-step explanation:
Given:
[tex]\cos \theta-\sqrt{3}\sin \theta=1[/tex]
Divide this equation by 2:
[tex]\dfrac{1}{2}\cos \theta-\dfrac{\sqrt{3}}{2}\sin \theta=\dfrac{1}{2}[/tex]
Note that
[tex]\cos \dfrac{\pi }{3}=\dfrac{1}{2}\\ \\\sin \dfrac{\pi }{3}=\dfrac{\sqrt{3}}{2}[/tex]
So, the previous equation is
[tex]\cos \dfrac{\pi}{3}\cdot \cos \theta-\sin \dfrac{\pi}{3}\cdot \sin \theta=\dfrac{1}{2}[/tex]
Remind that
[tex]\cos x\cos y-\sin x\sin y=\cos (x+y),[/tex]
then
[tex]\cos \left(\dfrac{\pi}{3}+\theta\right)=\dfrac{1}{2}[/tex]
The solution of this equation is
[tex]\dfrac{\pi}{3}+\theta=\pm \arccos \dfrac{1}{2}+2\pi k,\ \ k\in Z\\ \\\dfrac{\pi}{3}+\theta=\pm \dfrac{\pi}{3}+2\pi k,\ \ k\in Z\\ \\\theta =2\pi k,\ \ k\in Z\ \text{or}\ \theta=-\dfrac{2\pi}{3}+2\pi k,\ \ k\in Z[/tex]