I'm trying to solve the following problem.
Suppose $f$ is continuous on $[0,12]$ and $f(0) = f(12)$. Define $g(x) = f(x) - f(x+6)$. Prove that there exist $t,s \in [0,12]$, where $s = t + 6$, and $f(s) = f(t)$ and $a,b \in [0,12]$ where $a = b + 3$ such that $f(a) = f(b)$, but that it is not possible to find $q,r$ with $q = r + 4$ and $f(q) = f(r)$.
I was able to figure out the case where $s = t + 6$. I consider $x = 0$, $x = 6$, and prove that $g(0) = - g(6)$, and use the IVT. Either $g(0) = g(6) = 0$ or $g$ crosses the $x$-axis. In the first case, I have $f(0) = f(6)$. In the second, I use the intermediate value theorem to find an appropriate value since $g(0) < 0 < g(6)$ or $g(6) < 0 < g(0)$.
I can't figure out where to start for the case $a = b + 3$ or how to disprove the case $q = r + 4$. I need to somehow consider values of $x$ that are three apart, so my instinct was to consider $x = 9$, but that doesn't lead me anywhere. I need to still work in $0$ and $12$ somewhere, the only values of $x$ I know, to find an equality, but also had no luck. I tried contradiction for the $q = r + 4$ case, but couldn't make any progress.
I'd appreciate any help with these.