Divide your shape into two different shapes. a cube and a rectangular prism.
the cube has the measurements of 20*20*20 giving it a volume of 8000 inches^3
the rectangular prism has the measurements of 40*30*20 giving it a volume of 24000 inches^3
now add them together to get 32,000 inches^3 as your answer