\(a,3x\left(x-2\right)-5x\left(1-x\right)-8\left(x^2-3\right)\)
\(=3x^2-6x-5x+5x^2-8x^2+24\)
\(=\left(3x^2+5x^2-8x^2\right)+\left(-6x-5x\right)+24\)
\(=0-11x+24\)
\(=-11x+24\)
\(b,\left(7x-3\right)\left(2x+1\right)-\left(5x-2\right)\left(x+4\right)-9x^2+17x\)
\(=14x^2+7x-6x-3-5x^2-20x+2x+8-9x^2+17x\)
\(=\left(14x^2-5x^2-9x^2\right)+\left(7x-6x-20x+2x+17x\right)+\left(-3+8\right)\)
\(=0+0+5\)
\(=5\)