Solving Trigonometric Equations with Multiple Angles