The volume of a pyramid is equal to one-third of the product of the base area and the height, following the formula:

Since the base of the pyramid is a square, the area of its base is equal to the square of its side length:

Then, you can write the formula for the volume as follows:

The side length of the base is a=30m and the height of the pyramid is h=20m, replace both values on the formula to calculate the volume:

The volume of the square pyramid is 6000m³