Solve for x x-5(x+1)=3x+2