<human>:  The pizzeria sells small pizzas for $2 and large pizzas for $8. They sold $40 in pizzas. If they sold 8 small pizzas, how many large pizzas did they sell?
<bot>: How much did they earn from the small pizzas? ** They earned 8*2= $<<8*2=16>>16 from the small pizzas
How much did they earn from the large pizzas? ** The large pizzas earned 40-16=$<<40-16=24>>24
How many large pizzas did they sell? ** They sold 24/8= <<24/8=3>>3 large Pizzas
#### 3