Elvis and Ralph are to make square shapes with matchsticks from a box containing 50 matchsticks. Elvis makes 4-matchstick squares and Ralph makes 8-matchstick squares. If Elvis makes 5 squares and Ralph makes 3, how many matchsticks will be left in the box?
Elvis makes 5 squares with 4 matchsticks each for a total of 5*4 = 
<gadget id="calculator">5*4</gadget>
<output>20</output>
20 matchsticks.
Ralph makes 3 squares with 8 matchsticks each for a total of 8*3 = 
<gadget id="calculator">3*8</gadget>
<output>24</output>
24 matchsticks.
They used a total of 20+24 = 
<gadget id="calculator">20+24</gadget>
<output>44</output>
44 matchsticks.
There will be 50-44 = 
<gadget id="calculator">50-44</gadget>
<output>6</output>
6 matchsticks left in the box.

<result>6</result>