The second warehouse has 400/2 = <<400/2=200>>200 boxes.
Collectively, there are 400+200 = <<400+200=600>>600 boxes in the first and second warehouse.
#### 600