The nine averages are distinct integers from 1 to 9, so exactly 1 to 9; equal row and column totals make each row's and column's averages sum to 15. (r,c) is row r, column c.
(3,1): median 8, all sacks above 5, one star, so only 'maximum 9' holds; divisibility by 3 gives 7, 8, 9 (average 8).
(2,1): median 2, two stars, so minimum 1 and maximum 9: 1, 2, 9 (average 4).
(1,2): median 9 and only two sacks above 5, so 9, 9 and one of 2 to 5 (one star rules out 1); divisibility by 3 gives 3, 9, 9 (average 7).
So (1,1) = 3 and (1,3) = 5. Rows 2 and 3 need pairs from 1, 2, 6, 9 summing to 11 and 7; column 2 needs 8: (2,2) = 2, (2,3) = 9, (3,2) = 6, (3,3) = 1.
Table 2 gives (1,1) 1, 1, 7 (a 9 cannot fit); (1,3) 1, 6, 8 (a 9 leaves 0); (2,2) 1, 2, 3 (1, 1, 4 earns two stars); (2,3) 9, 9, 9; (3,2) 1, 8, 9; (3,3) 1, 1, 1.

All three sacks differ in (1,3), (2,1), (2,2), (3,1) and (3,2); (1,1), (1,2), (2,3) and (3,3) repeat a number.
The answer is 5.