Area of triangles and trapezoids