when calculating the area of a trapezoid how do you determine which sides are the bases