\(a, x^3+5x^2-9x-45=0\\ \Leftrightarrow x^2\left(x+5\right)-9\left(x+5\right)=0\\ \Leftrightarrow\left(x-3\right)\left(x+3\right)\left(x+5\right)=0\\ \Leftrightarrow\left[{}\begin{matrix}x=3\\x=-3\end{matrix}\right.\left(x\ne-5\right)\\ \text{Với }x=3\Leftrightarrow A=\dfrac{9-9}{3\left(3+5\right)}=0\\ \text{Với }x=-3\Leftrightarrow A=\dfrac{9-9}{3\left(-3+5\right)}=0\\ \text{Vậy }A=0\\ b,B=\dfrac{x^2-3x+2x^2+6x-3x^2-9}{\left(x-3\right)\left(x+3\right)}\\ B=\dfrac{3x-9}{\left(x-3\right)\left(x+3\right)}=\dfrac{3\left(x-3\right)}{\left(x-3\right)\left(x+3\right)}=\dfrac{3}{x+3}\)