Mean Value Theorem and finding the value of c