What is the relationship between the volume of a rectangular prism and a rectangular pyramid having both congruent bases and heights?