There are numbers A$ and B for which
\[\frac A{x-1}+\frac B{x+1}=\frac{x+2+3x-8}{x^2-1}\]
for every number $x\neq\pm1$. Find B.