If $f$ and $g$ are two continuous functions from $[a,b]$ to real numbers s.t $f(a)\lt g(a)$ and $f(b)\gt g(b)$. Prove that $f(x)=g(x)$ has at least 1 solution $c$ in $(a,b)$.
I tried using intermediate value theorem. It states that if f continuous on [a,b] f(a)< d< f(b) then there exists a point c in (a,b) such that f(c)=d