I'm super confused about what is going on here. I got an email from my prof with an explanation that left me even more lost. Here's the question:

Let f(x) =

0 if x<-4

4 if -4<= x < -1

-5 if -1 <= x < 4

0 if x >= 4

and

g(x) = int_(x at top, -4 at bottom) f(t) dt

Determine the following:

g(0) = ?

g(5) = ?

The absolute maximum of g(x) occurs when x = -1 at what value?

The explanation from my prof used things like "m1(a-b) and m2(b-x)" but I have no idea what this means. Could someone please explain to me the process of solving this? I tried just figuring out that when x = 0 the answer (given above) is -5, but this isn't right.

Thanks!