The volume of a pyramid with known base area and height is 1/3 of the volume of a box with those same dimensions. So
[tex]64=\dfrac{8\cdot4\cdot x}3\implies32x=192\implies\boxed{x=6}[/tex]