\(\text{I'm going to call your roots }(r_{11},~r_{12},~r_{21},~r_{22})\)
\(r_{21}=r_{11}-1 \\ r_{22}=r_{12}-1\)
\(p_1=x^2+c x + a = (x-r_{11})(x-r_{12}) =x^2 -\left(r_{11}+r_{12}\right) x+r_{11} r_{12}\\ p_2 = x^2 +(2-r_{11}-r_{12})x + (1-r_{11}-r_{12}+r_{11}r_{12})\)
\(\text{the coefficient }a \text{ appears in both polynomials so we can solve for the roots}\\ r_{11}r_{12} = 2-r_{11}-r_{12} \\ \text{Solving this we find that there are two possibilities}\\ (r_{11},~r_{12}) = (-2,~-4) ~\text{or}\\ (r_{11},~r_{12}) = (0,~2) \)
\(\text{In the first case we then have}\\ (r_{21},~r_{22}) = (-3,-5) \\ p_1(x) = (x+2)(x+4) = x^2 + 6x+8 \Rightarrow a=8,~c=6\\ p_2(x) = (x+3)(x+5) = x^2 + 8x + 15 \Rightarrow b=15 \\ a+b+c = 8 + 15 + 6 = 29\)
\(\text{In the second case we have}\\ (r_{21},~r_{22}) = (-1,1)\\ p_1(x) =(x-0)(x-2) = x^2 - 2x \Rightarrow a=0,~c=-2\\ p_2(x) = (x+1)(x-1) = x^2 - 1 \Rightarrow b=-1\\ a+b+c = 0-1-2 = -3\)
Someone please double check all of this.