Answer
$$x^2+x-2$$
Work Step by Step
Recall, like terms must (1) be raised to the same power and (2) consist of the same variable (i.e. x and y are not like terms). It is also important to note that numbers are all like terms with each other when not multiplied by anything. Thus, combining like terms, we find:
$$x^2+x+2-4\\ x^2+x-2$$