I have no idea how to rearrange $$3\tan^2 (x) - \sec (x) - 1 = 0$$ to solve for $x$.

So far all I can do is rearrange it to form $$\frac{3\sin^2 (x) - \cos (x) - \cos^2 (x)}{\cos^2 (x)}$$

I don't know where to go from here or any other way to solve $x$