# Math Help - Average rate of change

1. ## Average rate of change

I can't get this question.

Let f(x)= {-3x +7 if x<-1 and 10, if x>=-1}

Find the average rate of change in the interval -5<x<5.

I know the formula should be S(t1)-S(t2)/t1-t2, but i don't know what i'm doing wrong. I keep getting 12/10 as an answer.

2. I get

$\displaystyle \frac{f(5)-f(-5)}{5-(-5)} = \frac{10-(-3(-5)+7)}{5-(-5)} = \frac{10-(22)}{10}= \frac{-12}{10}=\frac{-6}{5}$