Solve 2 sin^2 x-3 sin x+1 =0, 0 less than or equal to x < 2pi

2 z^2 - 3 z + 1 = 0

(2z-1)(z-1) = 0

z = 1/2 or z = 1

so when is sin x = 1/2 ?
and when is sin x = 1 ?