This question can be solved by inspection. It's just a matter of factoring 12 into two factors that sum 4. Both numbers must be of different signs and they are 6 and -2. Their sum is indeed 6-2=4 and their product is 6*(-2)=-12.
However, we'll solve it by the use of equations. Let's call x and y to the numbers. They must comply: