Find the volume of the solid.
Let split this into 2 parts the upper one and the lower rectangular prisim.
The upper part volume is 2*2*(4-2)=2^3=8
The lower rectangular prisim volume is 8*2*2=4*8=32
So our final answer is 8+32=40in^3