The formula for the volume of a truncated square pyramid is:

where is the height, is the side length of the square base and is the side length of the square top.

The formula for a truncated cone is:

where is the height, is the radius of the base and is the radius of the top.

Can you proceed?