\(a,\left(x-5\right)\left(2x+1\right)-2x\left(x-3\right)\\ =x.2x-5.2x+x-5-2x.x-2x.\left(-3\right)\\ =2x^2-10x+x-5-2x^2+6x\\ =2x^2-2x^2-10x+x+6x-5\\ =-3x-5\)
\(b,\left(2+3x\right)\left(2-3x\right)+\left(3x+4\right)^2\\ =\left[2^2-\left(3x\right)^2\right]+\left[\left(3x\right)^2+2.3x.4+4^2\right]\\=4-9x^2+\left(9x^2+24x+16\right)\\ =24x+20\)