the relationship between average cost and total cost