Solve 

$$\cos x>\frac12\quad\text{for}\quad-180^{\circ}<x<180^{\circ}\;.$$

Hey guys, Ive got the solution to this question although I cant seem to figure out how the textbook did it. Can someone please explain this question thanks