To determine the height of the cube on the picture, you have to use the formula of the volume:
Where
V represents the volume
w represents the width
l represents the length
h represents the height
The first step is to write the formula for h, to do so, you have to divide the volume by the product of the width and length:
We know that the volume of the cube is 512 in³, its length is l=8 in and the width is w=8in, then:
The height of the cube is 8in