which line has the error

Answer:
the problem correctly :
x-5(x+1)=3x+2
x-5x-1=3x+2
x-5x-3x=2+1
-7x/-7=3/-7
x=3/-7