The volume of a square pyramid is

Where a is the length of each base side.
First, we have to find a using the perimeter.

Then, we find h using Pythagorean's Theorem,

Where c = 25in, b = 7in, and a represents the height h
![\begin{gathered} (25in)^2=h^2+(7in)^2 \\ 625in^2=h^2+49in^2 \\ h^2=625in^2-49in^2 \\ h=\sqrt[]{576in^2} \\ h=24in \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/hdw5pljaocf71zd16yooogeixfzy2y7ibc.png)
Now, we find the volume

Hence, the volume of the square pyramid is 1,568 cubic inches.