Answer
$1296 \ in^3$
Work Step by Step
The volume of a square pyramid can be obtained as:
$Volume =\dfrac{1}{2} \times b\times h=\dfrac{1}{2} \times S^2 \times h$
Plug the values of $S$ and $h$ into the formula to obtain:
$Volume=\dfrac{1}{2} \times (18)^2 \times (12)\\=\dfrac{1}{2} \times 3888 \\=1296 \ in^3$