calculate average rate of change

6, Y= -6x^2 - 3, 0<x<2
8, Y= 2(x+1)^2 -1, -2<x,2

(y(2)-y(0))/(2-0) = (-27+3)/2 = -12

same method for the other