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?
There are a total of 15 x 3 = 
<gadget id="calculator">15*3</gadget>
<output>45</output>
45 hats in 3 bags.
Since 5 tore off, only 45 - 5 = 
<gadget id="calculator">45-5</gadget>
<output>40</output>
40 hats were left.
Thus, 40 - 25 = 
<gadget id="calculator">40-25</gadget>
<output>15</output>
15 hats were unused.

<result>15</result>