\(x^2+5x-6\\ =x^2-x+6x-6\\ =x\left(x-1\right)+6\left(x-1\right)\\ =\left(x+6\right)\left(x-1\right)\\ ---\\ 5x^2+5xy-x-y\\ =x\left(5x-1\right)+y\left(5x-1\right)\\ =\left(5x-1\right)\left(x+y\right)\\ ----\\ 7x-6x^2-2\\ =-6x^2+3x+4x-2\\ =-3x\left(2x-1\right)+2\left(2x-1\right)\\ =\left(2-3x\right)\left(2x-1\right)\)
\(x^2+5x-6=\left(x-1\right)\left(x+6\right)\\ 5x^2+5xy-x-y=\left(5x-1\right)\left(x+y\right)\\ 7x-6x^2-2=\left(3x-2\right)\left(2x-1\right)\)