Peter is buying a set of glasses. They cost $3 for small glasses and $5 for large ones. He has $50.  If he buys 8 small ones and leaves with $1 in change, how many large ones did he buy?
He spent $49 on glasses because 50-49=
<gadget id="calculator">50-49</gadget>
<output>1</output>
1.
He spent $24 on small glasses because 8x3=
<gadget id="calculator">8*3</gadget>
<output>24</output>
24.
He spent $25 on large glasses because 49-24=
<gadget id="calculator">49-24</gadget>
<output>25</output>
25.
He bought 5 large glasses because 25/5=
<gadget id="calculator">25/5</gadget>
<output>5</output>
5.

<result>5</result>