When she orders 30 boxes, the total number of packs in the boxes is 30*40 = <<30*40=1200>>1200 packs.
If a pack has 160 diapers, 1200 packs contain 1200*160 = <<1200*160=192000>>192000 diapers.
After selling all the diapers, Meadow gets 192000*$5 = $<<192000*5=960000>>960000
#### 960000