Let f be a function that is continuous on the closed interval [5, 8] with f(5) = 5 and f(8) = 14. Which of the following is guaranteed by the intermediate value theorem?
1) The function f has a local maximum on the interval [5, 8].
2) The function f has a local minimum on the interval [5, 8].
3) The function f takes on every value between 5 and 14 on the interval [5, 8].
4) The function f is decreasing on the interval [5, 8].