Since g(x) = f(x) -x, g is a continuous function on [0,1]. Moreover g(0) < 0 < g(1). So by the Intermediate Value Theorem, there exists a p in [0,1] so that g(p) = 0.