Section 2.6.8. Problem 4

The problem statement is unclear. It says “Compute the averages” but the averages are already computed in the formula that follows this phrase.