The values of a for which one root of the equation x2−(a+1)x+a2+a−8=0 exceeds 2 and the other is less than 2, are given by