I can solve the equation in different ways but I'm not getting the right answer when solving as below: $$ \sin x=\cos 2x \\ \cos(\pi/2-x)=\cos 2x \\ \pi/2-x = \pm2x+2\pi k$$
$$x = -\pi /2+2\pi k\\ x = \pi /6-(2\pi k)/3$$
However the second solution should be $x = \pi /6+(2\pi k)/3$. Have checked my math multiple times. Where I'm going wrong?