In my opinion, this is a poorly stated problem. As the previous responder stated...
V = (x+3)(x+2)(x + 5)
The volume is the result of multiplying the area of the base times its height.
Of course, it depends on which of the faces of the box it is sitting. You have three different results depending on which face you want to call the base.
In V = (x^2 + 5x + 6)(x + 5), x^2+5x+6 could represent the base.
In V = (x^2 + 8x +15)(x+2), x^2 + 8x +15 can represent the base.
In V = (x^2+7x+10)(x+3), x^2+7x+10 can represent the base.