Anthony had 50 pencils. He gave 1/2 of his pencils to Brandon, and he gave 3/5 of the remaining pencils to Charlie. He kept the remaining pencils. How many pencils did Anthony keep?
Brandon received 50 x 1/2 = 
<gadget id="calculator">50*1/2</gadget>
<output>25</output>
25 pencils.
So, there were 50 -25 = 
<gadget id="calculator">50-25</gadget>
<output>25</output>
25 pencils left.
Charlie got 25 x 3/5 = 
<gadget id="calculator">25*3/5</gadget>
<output>15</output>
15 pencils.
Thus, Anthony gave away 25 + 15 = 
<gadget id="calculator">25+15</gadget>
<output>40</output>
40 pencils.
Therefore, Anthony kept 50 - 40 = 
<gadget id="calculator">50-40</gadget>
<output>10</output>
10 pencils.

<result>10</result>