Let k be a real number, such that both roots of x^2 - 2kx + k^2 + k - 5 = 0 are real, and they are less than 5. Find all possible values of k.
The possible values of k are (-inf,2].
How did you get that answer?