Midpoints and areas of triangles