Not sure what "two methods" you refer to, so I'll assume you're supposed to compute the line integral directly as well as with Green's theorem.
Direct computation:
It looks like the line integral is
where C is the union of three line segment. We'll partition C and parameterize each component by
• C₁, the line segment from (0, 0) to (1, 0) : x(t) = t and y(t) = 0;
• C₂, from (1, 0) to (1, 4) : x(t) = 1 and y(t) = 4t;
• C₃, from (1, 4) to (0, 0) : x(t) = 1 - t and y(t) = 4 - 4t;
each with 0 ≤ t ≤ 1.
Compute the integrals over each component:
• Along C₁, we have y = 0, so this integral contributes nothing.
• Along C₂,
• Along C₃,
So, the total line integral is
Using Green's theorem:
The interior of C is the triangular region
and the integrand has no singularities either on C or within D. So by Green's theorem,
The remaining integral is trivial.