\(9x^2-6x+1-y^2=\left(3x-1\right)^2-y^2=\left(3x-1-y\right)\left(3x-1+y\right)\)
\(x^2-7x+10=x^2-2x-5x+10=x\left(x-2\right)-5\left(x-2\right)=\left(x-2\right)\left(x-5\right)\)
\(a,9x^2-6x+1-y^2\)
\(=\left(3x-1\right)^2-y^2\)
\(=\left(3x-1-y\right)\left(3x-1+y\right)\)
\(b,x^2-7x+10\)
\(=x^2-2x-5x+10\)
\(=x\left(x-2\right)-5\left(x-2\right)\)
\(=\left(x-2\right)\left(x-5\right)\)