Factor the right-hand denominator: x2+x−6=(x−2)(x+3), which is exactly the LCD on the left. Combining the left side gives
(x−2)(x+3)A(x+3)+B(x−2)=(x−2)(x+3)x+13,
so the numerators agree at every allowed x. That makes them equal as polynomials: their difference has degree at most 1 and vanishes at infinitely many values, and only the zero polynomial can do that. A polynomial identity holds at every x with no exceptions, including the two values the original fractions bar, so you may substitute those values freely even though the fractions themselves are undefined there.
Setting x=2 kills the B term and gives 5A=15; setting x=−3 kills the A term and gives −5B=10.
A=3,B=−2
Check: 3(x+3)−2(x−2)=3x+9−2x+4=x+13.