\(A=\frac{2x^2-5x+2}{x^2-5x+6}=\frac{2x^2-4x-x+2}{x^2-2x-3x+6}=\frac{\left(2x-1\right)\left(x-2\right)}{\left(x-3\right)\left(x-2\right)}=\frac{2x-1}{x-3}\)
\(B=\frac{2x^5+3x^4-2x-3}{2x^3+3x^2+2x+3}=\frac{x^4\left(2x+3\right)-\left(2x+3\right)}{x^2\left(2x+3\right)+\left(2x+3\right)}=\frac{\left(x^4-1\right)\left(2x-3\right)}{\left(x^2+1\right)\left(2x-3\right)}=\frac{x^4-1}{x^2+1}=\frac{\left(x+1\right)\left(x-1\right)\left(x^2+1\right)}{x^2+1}=x^2-1\)