Let $f,g:[a,b] \rightarrow \mathbb{R}$ continuous functions and differentiable in $(a,b)$ , show that $\exists c \in (a,b)$ such $[f(b)-f(a)]g'(c) = [g(b)-g(a)]f'(c)$
I tried using the mean value theorem, but I can not relate the two functions with the same c.
any help is appreciated