The number of floors is 12 floors/building x 2 buildings = 24 floors
The number of apartments is 6 apartments/floor x 24 floors = <<6*24=144>>144 apartments
The company has to buy 7 doors/apartment x 144 apartments = <<7*144=1008>>1008 doors
#### 1008