If x + 2 and x - 3 are factors of the following polynomial, then find the values of a and b. F(x) = x^2 + ax^2- 7x + b

[tex]\text{Given that,}\\\\f(x) = x^3+ax^2-7x+b \\\\\text{Since}~ (x+2)~ \text{and}~ (x-3)~ \text{are factors of f(x),}\\\\f(-2) = 0 ~ \text{and}~ f(3)=0\\\\\\ \text{Now,}\\\\f(-2)=0\\\\\ \implies (-2)^3+a(-2)^2-7(-2)+b =0\\\\\implies -8 +4a +14+b =0\\\\\implies 4a +b +6 =0~~~....(i)\\\\\\f(3) = 0\\\\\implies 3^3+a(3^2) -7(3) +b =0\\\\\implies 27 +9a -21 +b =0\\\\\implies 9a +b +6 =0~~....(ii)\\\\\\(ii)-(i):\\\\9a+b+6 - 4a-b - 6 = 0\\\\\implies 5a =0\\\\\implies a = 0\\[/tex]
[tex]\text{Substitute a=0 in equation (i):}\\\\4(0) +b +6 =0\\\\\implies b+6 =0\\\\\implies b =-6\\\\\text{Hence, a = 0 and}~ b =-6[/tex]