
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
In triangle $\triangle ABC$, the sides opposite to angles $A$, $B$, and $C$ are $a$, $b$, and $c$ respectively, and $(2a-c)\cos B - b\cos C = 0$.

(1) Find the measure of $\angle B$.

(2) Consider the function $f(x) = 2\sin x\cos x\cos B - \frac{\sqrt{3}}{2}\cos 2x$. Find the maximum value of the function $f(x)$ and the set of values of $x$ when $f(x)$ is maximum.

Present the answer in LaTex format: \boxed{Your answer}
user