Hi, no matter what I try, I cannot solve these. I keep on ending up with 4 terms which I cannot factor. Well anyway here are the 2 questions. Please show me how to do them.

Solve for x on the interval 0 degree </= x </= 360 degrees.

Question A) 2sinxtanx - tanx - 2sinx + 1 = 0

Question B) cosxtanx - 1 + tanx - cosx = 0

I just need to get to part where I factor.

Thanks!