Hint: You can solve quadratic equations? You should consider $k$ as a parameter, (think of it like any number). Also you could substitute $k^2-2k \to q$ and solve for $x$, if the constant term $k^2-2k$ bears problems.
So if you know how to solve quadratic equations of the form
$$x^2 + px + q$$
then this is nothing else: $p = -2k$ and $q=k^2-2k$
Hint: You can solve quadratic equations? You should consider $k$ as a parameter, (think of it like any number). Also you could substitute $k^2-2k \to q$ and solve for $x$, if the constant term $k^2-2k$ bears problems. So if you know how to solve quadratic equations of the form $$x^2 + px + q$$ then this is nothing else: $p = -2k$ and $q=k^2-2k$
Secondly, the solution of the equation is:
$$x_{1/2} = -\frac{p}{2} \pm \sqrt{(\frac{p}{2})^2 -q}$$