Calculate the area of the trapezoid by decomposing it into triangles and rectangles.