The area of the smaller of the two triangles is ax^2/m and the area of the larger one is bx/m (from the standard formula for the area of triangles). This means that the area of the whole field is ax^2/m+bx/m. Since the amount of crop that can be grown on a field of unit area is m, the amount of crop that can be grown on a field of area ax^2/m+bx/m is m(ax^2/m+bx/m) = ax^2+bx.