We can rephrase this into something more familiar. Let $x_1, x_2, x_3, x_4, x_5, x_6, x_7$ be the number of bananas Nick eats on each day.
$ x_1 + x_2 + x_3 + x_4 + x_5 + x_6 + x_7 = 25 $
This is one of the divider questions
Assume we have 25 bananas and 6 dividers. We place the dividers between any set of bananas to indicate how many are eaten between dividers
Since we place dividers down, we need to add 6 dividers to the 25 bananas
We choose 6 positions out of the 31 for the dividers: $ \binom{31}{6} $