Let the average age of the whole team be x
Total number of players = 11
The average age of team = 11x
According to the question
Number of members after the excluding members = 9
New average age of team = (x + 1)
Sum of ages of the new team so formed = 9 (x + 1)
So, According to the question
Sum of ages of 11 players - (Captain's + Goalkeeper's) age = Sum of ages of 9 players
⇒
11x−30−24=9(x+1) ⇒
x==31.5