They need to buy 180/30=<<180/30=6>>6 boxes
So the cost is 6*40=$<<6*40=240>>240
#### 240