They earned 8*2= $<<8*2=16>>16 from the small pizzas
The large pizzas earned 40-16=$<<40-16=24>>24
They sold 24/8= <<24/8=3>>3 large Pizzas
#### 3