x^2-5x=5

I suppose you are solving ?

x^2 - 5x - 5 = 0

It does not factor, so your other option are to complete the square or to use the quadratic equation.
Your choice.