A rectangular prism has a height of 12 centimeters and a square base with sides measuring 5 centimeters. A pyramid with the same base and half the height of the prism is placed inside the prism, as shown in the figure.