Step-by-step explanation
The outer prism has volume:

And the inner prism has volume:

The volume remaining of outer prism once the hole is applied is:

The figure is mostly made up of rectangles (2-dimensions), which form parallelepipeds (3-dimensions).