The given solid is a pyramid. To calculate the volume of a pyramid we can use the known formula where h is the height and B is the area of the base.
V=1/3Bh
The base of the pyramid is a square with a side length of 3 centimeters. The area of the square equals the squared length of the side.
B=s^2 ⇒ B= 3^2= 9
The area of the base is 9 square centimeters. Moreover, we have that the height of the pyramid is 6 centimeters. Let's substitute these values into the formula and calculate V.