James is putting together 4 tables.  Each table has 4 legs and each leg needs 2 screws.  He has 40 screws.  How many screws will he have left over?
Each table will take 4*2=
<gadget id="calculator">4*2</gadget>
<output>8</output>
8 screws.
So he needs 8*4=
<gadget id="calculator">8*4</gadget>
<output>32</output>
32 screws.
That means he will have 40-32=
<gadget id="calculator">40-32</gadget>
<output>8</output>
8 screws left over.

<result>8</result>