Answer
$x=\frac{\pi}{4}$ and $x=\frac{5\pi}{4}$
Work Step by Step
$sin~x-2=cos~x-2$
$sin~x=cos~x-2+2$
$sin~x=cos~x$
$\frac{sin~x}{cos~x}=1$
$tan~x=1$
The solutions in the interval $[0,2\pi)$ are:
$x=\frac{\pi}{4}$ and $x=\frac{5\pi}{4}$