Calculate the area of a trapezoid given the lengths of its two parallel sides and the perpendicular height between them.
Formula
Area = ((a + b) / 2) × h