math expression

Multiply both sides by (x + 3)2:

x + 5 = A(x + 3) + B

Equating x parts and constant parts:

1 = A 5 = 3A + B

So B = 2

So

math expression