We might also use a trig identity to solve this....note that sin(pi/6)*cosx-cos(pi/6)*sinx= sin(pi/6 -x)......so we have
sin(pi/6 - x) = -1/2
Since the sinθ = -1/2 when θ = 7/6pi, we can solve (pi/6 - x) = 7/6pi, and find that x = -pi. But, -pi is the same coterminal angle as pi. So x = pi is one answer (as Aziz found). As a check, note that sin(pi/6 - pi) = sin (-5/6pi) = -1/2
Also, sinθ = -1/2 when θ = 11/6pi. And in a like manner, we have (pi/6 - x) = 11/6pi, and we find that x = -10/6pi or -5/3pi. But -5/3pi is the same coterminal angle as pi/3... (again, as Aziz found). As a check, note that sin(pi/6 - pi/3) = -1/2.
Using the identity saves a bit of work....but you also obtain answers that you must "convert" to stay within the specified interval....!!! Your choice....