This is what i have:
Put $g(t) = f(t) - ct$.
Then $g'(a)<0$ so that $g(t_{1}) < g(a)$ for some $t_{1} \in (a,b)$ and $g'(b)>0$ so that $g(t_{2}) < g(b)$ for some $t_{2} \in (a,b)$.
Hence $g$ attains its minimum on $[a,b]$ at some point x such that $a<x<b$.
Then, $g'(x)=0$, hence $f'(x)=c$