Volume of a rectangular pyramid:
Volume of a rectangular prism:
As you can see the volume of a rectangular pyramid (y) is a thrid part of the volume of a rectangular prism (x). Then, if the length, width and height of both molds is the same the volume of the rectangular prism (x) is three times the volume of the volume of the rectangular pyramid (y).