She baked 3 batches with c cookies each, that's c + c + c cookies (the "c" represents a number, we don't know the exact amount, is the variable of our equation). But then she ate 8, so we need to subtract that amount from the one we had before, that's c +c + c - 8.