Pete has a bag with 10 marbles. 40% are blue and the rest are red. His friend will trade him two blue marbles for every red one. If Pete keeps 1 red marble, how many total marbles does he have after trading with his friend?
He starts with 4 blue marbles because 10 x .4 = 
<gadget id="calculator">10*.4</gadget>
<output>4</output>
4
60% of the marbles are red because 100 - 40 = 
<gadget id="calculator">100-40</gadget>
<output>60</output>
60.
He has 6 red marbles because 10 x .6 = 
<gadget id="calculator">10*.6</gadget>
<output>6</output>
6.
He trades 5 red marbles because 6 - 1 = 
<gadget id="calculator">6-1</gadget>
<output>5</output>
5.
He gets 10 blue marbles because 5 x 2 = 
<gadget id="calculator">5*2</gadget>
<output>10</output>
10.
He has 15 marbles now because 4 + 1 + 10 = 
<gadget id="calculator">4+1+10</gadget>
<output>15</output>
15.

<result>15</result>