Division of $\displaystyle A=2x^3-3x^2-14x-10$ by $\displaystyle x-4$ yields the quotient

$\displaystyle Q\:=$

and remainder

$\displaystyle R\:=$

Furthermore, dividing $\displaystyle A$ by $\displaystyle B$ yielded the quotient

$\displaystyle Q=x+1$

and the remainder

$\displaystyle R=-1$

$\displaystyle B\:=$