Trigonometric Equations with Tangent and Secant Functions