You're almost finished.
(sin/cos) times cos = 0
Look at the left side. You could write it as (sin x cos) / cos = 0
and simply divide numerator and denominator by the cosine (cancel it).
Then what do you have left ? . . . sin(x) = 0 Do I need to finish this for you ?