For example if n= 1, saying that f and g are equal for n+1= 2 distinct values means that there are two distinct numbers, a and b, such that f(a)= g(a) and f(b)= g(b). It does NOT imply that there might not bemorevalues of x for which f and g are equal.

Similarly, if n= 2, saying that f and g are equal for n+1= 3 distinct values means that there are thre distinct numbers, a, b and c, such that f(a)= g(a), f(b)= g(b), and f(c)= g(c). Again, it does NOT imply theat there might not bemorevalues of x for which f and g are equal.

You subtracted g(x) from f(x)? Great. That will be a polynomial of degree at most n which is equal to 0 at n+ 1 distinct points. What is the maximum number of distinct zeros a polynomial of degree n can have?