Tim buys 3 loaves of bread.  Each loaf of bread has 20 slices.  He pays for the 3 loaves of bread with 2 $20 bills.  He gets $16 change.  How much does each slice cost, in cents?
He gave 2*20=$
<gadget id="calculator">2*20</gadget>
<output>40</output>
40.
So the total cost was 40-16=$
<gadget id="calculator">40-16</gadget>
<output>24</output>
24.
That means each slice costs 24/3=$
<gadget id="calculator">24/3</gadget>
<output>8</output>
8.
That means it costs 8*100=
<gadget id="calculator">8*100</gadget>
<output>800</output>
800 cents.
So each slice is 800/20=
<gadget id="calculator">800/20</gadget>
<output>40</output>
40 cents.

<result>40</result>