You can see that each term of the given polynomial has a factor x. We can use the distributive property.
x3+2x2-15x = x(x2 )+x(2x) -x(15)
= x(x2+2x-15) [ applying distributive property of multiplication over addition]
=x(x2+5x-3x -15) {using reverse foil, ie split 3=5-3 so that 5 *(-3) = -15]
=x(x(x+5)x -3(x+5))
=x(x-3)(x+5)
Your correct answer is B