What we need to calculate first is the volume of the container. Remember that the volume of a rectangular prism can be calculate like this:

L = 15p
W = 12p
H = 6p
So volume would be:

which equals

meters³
Now we want to know how many cubes with a length of 2p meters can be packed into this space. To know that, we have to calculate the volume of a single cube. The volume equation for a cube is this:

which can also be written as

since cubes have equal lengths
L = 2p
So let's calculate that volume!


meters³


If we want to know how many cubes fit into the rectangular prism, we just have to divide

by

:


The p³ will cancel out leaving us with this:
Number of Cubes = 135 cubes will fit into the prism