Prove: If f is a continuous function whose domain includes a closed interval [a,b], and L is a horizontal line, and (a,f(a)) is below L, and (b,f(b)) is above L, then there is a number x between a and b such that (x,f(x)) is on L.

Thanks in advance for help.