Timothy has $50 to spend at a souvenir shop. He sees some t-shirts that cost $8 each, key chains that sell 3 pieces for $2, and bags that cost $10 each. Timothy buys 2 t-shirts and 2 bags. How many pieces of key chains can he buy with the amount of money he has left?
The two t-shirts amount to $8 x 2 = $
<gadget id="calculator">8*2</gadget>
<output>16</output>
16.
The two bags amount to $10 x 2= $
<gadget id="calculator">10*2</gadget>
<output>20</output>
20.
So Timothy spent $16 + $20 = $
<gadget id="calculator">16+20</gadget>
<output>36</output>
36 for the shirts and bags.
He still has $50 - $36 = $
<gadget id="calculator">50-36</gadget>
<output>14</output>
14 left to spend for the key chains.
With the money, he can buy $14/$2 = 
<gadget id="calculator">14/2</gadget>
<output>7</output>
7 sets of key chains.
Therefore, he can buy 7 x 3 = 
<gadget id="calculator">7*3</gadget>
<output>21</output>
21 pieces of key chains.

<result>21</result>