How do you solve trigonometric equations by factoring?