\(=18x^2-2-45x^2+30x-5=-27x^2+30x-7=-27x^2+21x+9x-7=-9x\left(3x-1\right)+7\left(3x-1\right)=\left(-9x+7\right)\left(3x-1\right)\)
\(18x^2-2-5\left(9x^2-6x+1\right)\)
\(=18x^2-2-45x^2+30x-5\)
\(=-27x^2+30x-7\)
\(=-27x^2+21x+9x-7\)
\(=-9x\left(3x-1\right)+7\left(3x-1\right)\)
\(=\left(-9x+7\right)\left(3x-1\right)\)