If the volume of a prism is 3x^2 + 6x - 24, what are the dimensions?

Please help.

(3x-6)(x+4)