How do I decide to take a positive or negative digit?

My confusion is regarding two questions. They are part of two different exercises:

1)

In the solution for this question, the value of A and B are taken as positive digits (2&9) instead of -2 &-9

However, in a similar question but a different exercise:

2)

Here, in the solution, a=1; b=1; c= -6. Why is c -6 here and not +6, like in the question above?

Write down the final expression for both questions.

Final Expressions:
Q1) x-2/ x^2-9
Here, shouldn’t a=-2 and b=-9;
then a+b= -2+(-9)= -11 ? But the solution is 11
Q2) x ^2 +x−6; here a=1; b=1; c=-6;
Question asks for: a+b+c = 1+ 1+ (-6)= -4

My confusion is that in the explanation of the solution for Q1, this was the reasoning given: " We already applied the “-” in both a and b". Using the same logic, shouldn’t the value of c be 6 in Q2?
Alternatively, in Q2 the solution takes the value of c as -6. Using the same logic, shouldn’t we take negative values of the digits in Q1 as well?

Look at your answer for Q1:

\frac{x - 2}{x^2 - 9}

And go back to the format the question asked you to put it in:

\frac{x - a}{x^2 - b}

If you put a = -2 and b = -9, what do you get?