The gold bar has a trapezium cross sectional area

The area of a trapezium is calculated by multiplying the average of the two parallel sides by the height of the trapezium.

A = (a + b) / 2 * h

Where a and b are the lengths of the two parallel sides and h is the height of the trapezium.