The question asks: Find the values of k for which the line
$y=2x-k$ is tangent to the circle with equation $x^2+y^2=5$
So I started by substituting,
$x^2+(2x-k)^2=5$
$x^2+4x^2-4xk+k^2=5$
$5x^2+k^2-4xk-5=0$
But after this I couldn't see a way to factor it that would make able to find the discriminant and set that equal to $0$.
Help would be appreciated.

The distance from the point $(0,0)$ to the line $2x-y-k=0$ should be equal to the radius of the circle.
Thus, $$\frac{|2\cdot0-0-k|}{\sqrt{2^2+1^2}}=\sqrt5$$ or $$|k|=5.$$