Calculus Examples

Find the Average Value of the Equation y=(x^2-4x)/(x^2+2x) , (2,-1/2)
I am unable to solve this problem.