The Volume formula of square pyramid is :
[tex]V=\frac{1}{3}b^2h[/tex]where V = volume
b = base length
h = height
From the problem,
V = 32 cubic feet
b = 4 feet
The height will be :
[tex]\begin{gathered} 32=\frac{1}{3}(4)^2(h) \\ 32\times3=16h \\ \frac{32\times3}{16}=h \\ h=6 \end{gathered}[/tex]The answer is 6 feet