Andy and his brother ate 5 + 3 = <<5+3=8>>8 cookies in total.
The nth term of the sequence for the basketball players taking cookies in 2n-1.
The number of players is 8 so they would have eaten 1 + 3 + 5 + 7 + 9 + 11 + 13 + 15 = 64 cookies.
In total Andy had 64 + 8 = <<64+8=72>>72 cookies to start with before they were all eaten.
#### 72