You can put one figure inside of the other. The figure that is smaller will fit inside of the other figure. Both figures have congruent bases and the same height, so when you put the pyramid inside the prism, their bases overlap exactly. Since the shapes are the same height, the top of the pyramid touches the top of the prism. The pyramid clearly fits inside of the prism, so the volume of the pyramid must be smaller.