we know that
The volume of a square prism is equal to

where
A is the area of the base of the prism
H is the height of the prism
The volume of the container is equal to the volume of the larger prism minus the volume of the smaller prism
Step 1
Find the volume of the larger prism

In this case



Step 2
Find the volume of the smaller prism

In this case



Step 3
Find the volume of the container
The volume of the container is equal to the volume of the larger prism minus the volume of the smaller prism
so

Simplify
![V=[B^{2}-b^{2}]*h\ units^{3}](https://tex.z-dn.net/?f=V%3D%5BB%5E%7B2%7D-b%5E%7B2%7D%5D%2Ah%5C%20units%5E%7B3%7D)
Difference of squares
![V=[B-b]*[B+b]*h\ units^{3}](https://tex.z-dn.net/?f=V%3D%5BB-b%5D%2A%5BB%2Bb%5D%2Ah%5C%20units%5E%7B3%7D)
therefore
<u>the answer is</u>
![V=[B-b]*[B+b]*h\ units^{3}](https://tex.z-dn.net/?f=V%3D%5BB-b%5D%2A%5BB%2Bb%5D%2Ah%5C%20units%5E%7B3%7D)