a: Sửa đề: \(B=\left(\dfrac{2a}{a+3}+\dfrac{2}{3-a}+\dfrac{3}{a^2-9}\right):\dfrac{a+1}{a-3}\)
\(=\dfrac{2a^2-6a-2a-6+3}{\left(a-3\right)\left(a+3\right)}\cdot\dfrac{a-3}{a+1}=\dfrac{2a^2-8a-3}{\left(a+3\right)\left(a+1\right)}\)
b: |a|=2
=>a=2 hoặc a=-2
Khi a=2 thì \(B=\dfrac{2\cdot2^2-8\cdot2-3}{\left(2+3\right)\left(2+1\right)}=\dfrac{-11}{15}\)
Khi a=-2 thì \(B=\dfrac{2\cdot\left(-2\right)^2-8\cdot\left(-2\right)-3}{\left(-2+3\right)\left(-2+1\right)}=-21\)