Hello! I need some help with a simple line integral. If there's someone out there who wouldn't mind explaining their work, could he/she lend a hand?

the problem is:

Let C be the curve which is the union of two line segments, the first going from (0, 0) to (-4, 2) and the second going from (-4, 2) to (-8, 0).

Computer the line integral

∫-4dy-2dx

i've tried solving for this by parameterizing the 2 line segments in terms of t, and calculated an incorrect answer of 32.