Solve the equation on the interval [0, 2π).
(tan x - 1) (cos x - 1) = 0
(tan x - 1) (cos x - 1) = 0