Answer:
The first blank is: 26
The second blank is: 17
The third blank is: 31 - n
Explanation:
So basically each row should add up to 31. So for every number they give you (doesn't matter which color ball), you need to subtract it from 31.
That's why for the first blank, 31 - 5 is 26
second blank, 31 - 14 is 17
and so on....
so the resulting function would be 31 - n
n being a random number that is given to you