This is a compound shape. It is made up of a cube and cuboid. You find the volume of a compound shape in the same way. V= l × w × h You find the volume of each shape and then add them together ...
The edge length is 3 cm. 3³ = 27. The volume of the cube is 27 cm³. Count the unit cubes that make the top layer of the cuboid. Multiply the number of cubes in the top layer by the number of layers.