These used to confuse me, too!
So, if we were looking for f(3), we'd substitute 3 for x, right?
f(3) =32 + 3 + 1 = 9 + 3 + 1 = 13
We can find a value because we are given a value to substitute for x.
With f °g(x), we substitute g(x) for x. Since g(x) = x - 2...
f ° g(x) = (x - 2)2 + (x - 2) + 1 = x2 - 4x + 4 + x - 2 + 1 = x2 - 3x - 1
Now, g(-1) = -1 - 2 = -3, so f ° g(-1) = f(-2) = (-2)2 + (-2) + 1 = 4 - 2 + 1 = 3
The rest are on you.