when you have (sin^2)(x) = (cos^2)(x) ....use (cos^2)(x) = 1 - (sin^2)(x) and substitute in, you then can solve because now you only have one variable ...
** i don't know to to write in the form like chme does, or else, it would look much easier.