129. There are 11 boxes with one of the following amounts of donuts: 9, 10, 11,12,13,14,15,16,17,18,19 (or 11 boxes with a unique qty of donuts), which means that there are 140-11=129 remaining boxes with matching donuts (20) therefore with 11 boxes with unique values then 129 have the same value.