when a rectangular prism and rectangular pyramid have the same base