we know that
The volume of the prism is equal to

where
B is the area of the base
h is the height
in this problem
area of the base B is the area of a rectangle

----------> is the distance perpendicular to the base
Find the volume of the prism

therefore
the answer is
the volume of the prism is
