Connecting Volume of Prism and Pyramid

This applet shows a pyramid inside a rectangular based prism. Play with it for a bit and observe the relationship between the volumes of both shapes.

If we know the volume of a rectangular-based prism, how can we determine the volume of a pyramid with the same area and height? Explain