Given,
The height of the shape is 18 inches.
The height of cuboidal part is 11 inches.
The height of pyramid part is 18- 11 = 7 inches.
The side of the cuboidal part is 3 inches.
The base of the pyramid part is also 3 inches.
The volume of the cuboidal part is,
The volume of pyramid part is,
Here, the value of a is 3 and h is 7 then,