Let $f,g:[a,b] \rightarrow \mathbb{R}$ be continuous in $[a,b]$ and differentiable in $(a,b)$. Prove that there is a point $c \in (a,b)$ such that: $$[f(b)-f(a)]g'(c) = [g(b)-g(a)]f'(c).$$
I think this is a straightforward application of the mean value theorem to a clever function. Am I right? If so, which function? Thanks :)