The first 8 customers bought 8*3=<<8*3=24>>24 cases
The next 4 customers bought 4*2=<<4*2=8>>8 cases
The last 8 customers bought 8*1=<<8*1=8>>8
In total 24+8+8=<<24+8+8=40>>40 cases were sold
#### 40