To find the volume of the empty space, we need to find the volume of the cube and the pyramid and then find the difference between both values.
VOLUME OF CUBE:
The volume of a cube is calculated as

The length of the cube is 18. Therefore, the volume is given to be

VOLUME OF PYRAMID:
The formula to calculate the volume is

Where

Since the base is an 18 unit square, and the height of the pyramid is 18 units as well, we can calculate the volume to be

VOLUME OF THE EMPTY SPACE:
The volume of the empty space can be calculated by subtracting the volumes of the cube and pyramid:
