Understanding area of a trapezoid