How do you solve 6(cos^2)x+cosx=1

I need it in the form that's like (x+x)(x+x) so that I can set them equal to zero and find the answers. Please show all of the steps.

Factorize using cos(x) as a variable:

(2cos(x)+1)(3cos(x)-1)=0
Solve for cos(x).