The volume of a rectangular prism is computed as follows:
Substituting with the dimensions of the flower bed, we get:
1 bag of soil contains 1.5 cubic feet of soil. We need to find how many bags contain 31.5 cubic feet of soil. We can do it with the help of the next proportion:
Solving for x: