application of intermediate value theorem in real life