If (x - 1) is the factor of f(x) = x2−ax+2, find the value of a.
If x - 2 is a factor for x2+ax+b and a + b = 1, find the values of a and b.