To solve this problem we need to calculate the volumes of each of the pyramids individually.
The formula for the volume V of a pyramid is

Where
A_B: base area
h: height
For the first pyramid

For the second pyramid

The difference in volumes

The difference between the volumes of the pyramids is 214167 square meters.