How do you solve #2cos^2x-cosx=1# and find all solutions in the interval #0<=x<360#?