You need to divide 367 by 3 = 122.3 but you cant have .3 of a box so this needs to be rounded up to 123 as even though this will be more than the needed amount, it is the minimum amount needed.
To double check:
123 x 3 = 369.
So they will have 2 spare.