A needs to be multiplied up by x+3 to make the fraction have the same in denominator as the other expressions. Then you need to equate the numerators. 3 - 5x = A(x+3) + B
You can gain two simultaneous equations from this equation, those with an x multiplier and those without:-5 = A3 = 3A + Binput A:3 = -15 + B
rearrange to find B.
Answer is therefore: 18/(x+3)^2 - 5/(x+3)