<human>:  Miggy's mom brought home 3 bags of birthday hats. Each bag has 15 hats. Miggy accidentally tore off 5 hats. During the party, only 25 hats were used. How many hats were unused?
<bot>: How many hats are there? ** There are a total of 15 x 3 = <<15*3=45>>45 hats in 3 bags.
How many hats were left? ** Since 5 tore off, only 45 - 5 = <<45-5=40>>40 hats were left.
How many hats were unused? ** Thus, 40 - 25 = <<40-25=15>>15 hats were unused.
#### 15