43
You can buy any number of wings that can be divided evenly by three except for three by using the combinations of boxes of 6 and boxes of 9. (You must use at most the box of 9 and then multiple boxes of 6). Now, if there is a number that can't be divided by 3, use a box of 20. After purchasing the box of 20, if the number that remains is divisible by 3, then you are good to go. On the other hand if it is not, you will have to use a second box of 20. And the remaining number will definitely be divisible by 3.
.
Thus if we calculate the largest number that can't be bought is the one that requires two 20 pieces boxes before the remainder can be thinned down to a number divisible by 3. We know that 3 is the number that can't be purchased and can evenly be divisible, the largest possible number of wings that can't be bought are:
3 + 20 + 20 = 43