a, \(\left(2x+6\right)\left(4x^2-12x+36\right)-8x^3+5\)
= \(\left(2x+6\right)\left[\left(2x\right)^2-2x.6+6^2\right]-8x^3+5\)
= \(\left(2x\right)^3+6^3-8x^3+5\)
= \(216+5=221\)
b, \(\left(x-5\right)\left(2x+3\right)-2x\left(x-3\right)+x+7\)
= \(10x^2+3x-10x-15-2x^2+6x+x+7\)
= \(8x^2-8\)