Solve for x in terms of k.
Get the equation in the form ax^2 + bx + c = 0. k will be in there somewhere in a,b, and/or c. Then, solve the quadratic. Instead of simplifying the qudratic formula to a constant, simplify it to terms with k.
Does that make sense? Shout at me if it doesn't.