Solving trig. equations with multiple angles