Prove the following version of the intermediate value theorem. Let (X,d) be a connected metric space and f:X→R a continuous function. Suppose x0,x1∈X and y∈R are such that f(x0)<y<f(x1). Then prove that there exists a z∈X such that f(z)=y. Hint: See Exercise 7.5.5.