Suppose that $f:[0,2\pi$] $\rightarrow \mathbb{R}$ is continuous and $f(0)=f(2\pi)$.
Show that there exists an $x\in[0,\pi$] such that $f(x)=f(x+\pi)$.
I simply have no idea where to start, any help would be appreciated. I have run the transformation through the definition of continuity but I couldn't see that it helped at all.