So the f(t) is the tangent line of anytime t months after January.

Take the integral of it from 5 to 9, and do 1/(9-5) * result for average

Reason being is Integral ( f(t) ) gives you the total temperature during those months, and 1/(9-5) is the average of them