Let h= the height of the square pyramid.
Volume of the square pyramid
=31​Bh=31​(6)2h=12h
Volume of the cube =s3=(4)3=64
Since the square pyramid and the cube have equal volumes, 12h=64.
Solving for h gives h=1264​=316​, or 5.33.