I need halp, how do? I factored it and then had no idea what to do.

x2+13x+40 divided by x2+17x+72 all multiplied by x2+9x over x2-3x-40

This is how I factored it

(x+5)(x+8)( x2+9x)

over

(x+9)(x+8)(x-8)(x+5)

Which I then reduced to

x2+9x

over

(x+9)(x-8)

Of the four answers. One is like mine, but without the (x+9) and two others have just an x on top and the last answer just has a one on top. So what gives?