Answer:
The volume of the pyramid is one third the volume of the rectangular prism
or
The volume of the prism is three times the volume of the pyramid
Explanation:
step 1
Find the volume of the rectangular prism
The volume is equal to

where
B is the area of the base
h is the height of the prism
Find the area of the base B

substitute

step 2
Find the volume of the square pyramid
The volume is equal to

where
B is the area of the base
h is the height of the pyramid
Find the area of the base B

substitute

Remember that

substitute

The volume of the pyramid is one third the volume of the rectangular prism
or

The volume of the prism is three times the volume of the pyramid