<human>:  Shelby was having a movie party for her birthday. She and her mom made a dozen bags of buttered popcorn and 10 bags of caramel popcorn. Her brother Alan took 3 bags of buttered popcorn and 1 bag of caramel popcorn for his friends. How many bags of popcorn does Shelby have left for the party?
<bot>: How many bags of popcorn did Shelby and her mom make? ** Shelby and her mom made 12 bags of buttered popcorn + 10 bags of caramel popcorn = <<12+10=22>>22 bags.
How many bags of popcorn did Alan take? ** Of those 22 bags, her brother took 3 bags of buttered popcorn + 1 bag of caramel popcorn = <<3+1=4>>4 bags.
How many bags of popcorn does Shelby have left? ** So now Shelby has 22 bags – 4 bags = <<22-4=18>>18 bags of popcorn left.
#### 18