Let f(x) = x8 - x5, g(x) = -x2 + x + 1.
We write that f(x) = x5(x3 - 1). x = 0 is a five multiple root and x = 1 is a simple root. Also x = 0 is turning point of f. If we draw graph of y = f(x) curve and y = g(x) parabola, we see that thare are two intersection points of f(x) = g(x)