A rectangular prism has a base area of 25 inches squared and a volume of 125 cubed inches. If a rectangular pyramid has a congruent base and height congruent to the prism, what is the height of the pyramid?

Given that the volume of the rectangular prism is 125 cubic inches and its base area is 25 square inches, the height of the prism is equal to:

\[ \text{height of prism} = \frac{\text{volume of prism}}{\text{base area of prism}} = \frac{125}{25} = 5 \text{ inches} \]

Since the rectangular pyramid has a congruent base and height congruent to the prism, the height of the pyramid is also 5 inches.