The domain of a function contains the x-values of the function while the range of the function contains the y-values of the function. In this case, we substitute 25 and 64 to y. Then, 
25 = k2 + 2 k + 1 (k-4) * (k+6) = 0 
64 = k2 + 2 k + 1 (k-7) * (k+9) = 0 
hence the domain is {-9,-6, 4,7}