Area of trapezoid and ordering numbers.