Trigonometric Equations involving cosine and sine functions