The volume of a pyramid is:
Where B is the area of the base and h is the height.
Since it's a square pyramid, the base has the shape of a square. So it's area is:
And we have that the volume is 225in³. We can replace these values into the formula for the volume and solve for h:
The height of the pyramid is 27 inches