[tex]x+y=6[/tex] is the equation of the line through the points (6, 0) and (0, 6).
By Green's theorem,
[tex]\displaystyle\int_C\vec F(x,y)\cdot\mathrm d\vec r=\iint_D\left(\frac{\partial(xy^2)}{\partial x}-\frac{\partial(x(x+y))}{\partial y}\right)\,\mathrm dA[/tex]
where [tex]C[/tex] is the given path and [tex]D[/tex] is the triangular region with [tex]C[/tex] as its boundary. We have
[tex]\displaystyle\iint_D(y^2-x)\,\mathrm dA=\int_0^6\int_0^{6-x}(y^2-x)\,\mathrm dy\,\mathrm dx=72[/tex]