a: \(B=\left(\dfrac{21}{\left(x-3\right)\left(x+3\right)}+\dfrac{x-4}{x-3}-\dfrac{x+1}{x+3}\right):\left(1-\dfrac{1}{x+3}\right)\)
\(=\dfrac{21+x^2-x-12-x^2+2x+3}{\left(x-3\right)\left(x+3\right)}:\dfrac{x+3-1}{x+3}\)
\(=\dfrac{x+12}{x-3}\cdot\dfrac{1}{x+2}=\dfrac{\left(x+12\right)}{\left(x-3\right)\left(x+2\right)}\)
b: |2x+1|=5
=>2x+1=5 hoặc 2x+1=-5
=>2x=-6 hoặc 2x=4
=>x=2
Khi x=2 thì \(B=\dfrac{2+12}{\left(2-3\right)\left(2+2\right)}=\dfrac{14}{-4}=-\dfrac{7}{2}\)