This pyramid has the same base as the prism, and its height is three times the height of the prism. What is the ratio of the volume of the pyramid to the volume of the prism?