Suppose that f and g are two functions both continuous on the interval [a,b], and such that f(a)=g(b)=p and f(b)=g(a)=q where p is not equal to q. Sketch typical graphs of two functions. Then apply the intermediate value theorem to the function h(x)= f(x)-g(x) to show that f(c)=g(c) at some point c of (a,b)