When we solve equations , we got some intervals and sets of the answers .Easily we can make union of intervals (Put them together and create final answer ) . For example consider $x \in [-1 \ 1]$ and $x \in [-2 \ 2]$ and the final answer is $x \in [-2 \ 2]$.
Problem appears in trigonometry equations . For example if $x=2k\pi$ and $2k\pi \pm 2\pi/3$ .Therefore the final answer is $2k\pi/3$ . I know we can put numbers in these formulas and get the same result but I want a way for doing this and how we can put solutions together in similar situations (trigonometry equations ) and get the answer.