Let $f,g:[0,1] \rightarrow \mathbb{R}$ are continuous and increasing then there $a,b \in[0,1] $ such that $f-g$ is monotonic on (a,b).
My approach: Let $h=f-g$ and assume this is not true . Therefore, for all $(a,b) \subset [0,1]$ there exist $p,q,r \in (a,b) $ such that $p<q<r$ then either "$\ h(p)>h(q) \ \text{and} \ h(q)<h(r)$" or "$h(p)<h(q) \ \text{and} \ h(q)>h(r)$"
I have no idea how to proceed further please help me.