\(B=\dfrac{\left(a+3\right)^2}{2a^2+6a}\cdot\dfrac{1-6a-18}{a^2-9}\\ a,ĐK:a\ne0;a\ne\pm3\\ b,B=\dfrac{\left(a+3\right)^2}{2a\left(a+3\right)}\cdot\dfrac{-17-6a}{\left(a-3\right)\left(a+3\right)}=\dfrac{-17-6a}{2a\left(a-3\right)}\\ c,B=0\Leftrightarrow-17-6a=0\Leftrightarrow a=-\dfrac{17}{6}\left(tm\right)\\ d,B=1\Leftrightarrow-17-6a=2a^2-6a\\ \Leftrightarrow2a^2=-17\Leftrightarrow a\in\varnothing\)