Alicia has 20 gumballs. Pedro has that many gumballs plus an additional number of gumballs equal to three times the number Alicia has. They put their gumballs in a bowl, and later Pedro takes out 40% of the gumballs to eat. How many gumballs are remaining in the bowl?
If Pedro has three times more gumballs than Alicia, he has 3 * 20 gumballs = 
<gadget id="calculator">3*20</gadget>
<output>60</output>
60 gumballs more.
In total, Pedro has 20 gumballs + 60 gumballs = 
<gadget id="calculator">20+60</gadget>
<output>80</output>
80 gumballs.
When they put their gumballs together, the total number of gumballs in the bowl becomes 20 gumballs + 80 gumballs = 
<gadget id="calculator">20+80</gadget>
<output>100</output>
100 gumballs.
Pedro takes out 40% of the gumballs which is 40/100 * 100 gumballs = 
<gadget id="calculator">40/100*100</gadget>
<output>40</output>
40 gumballs.
The number of gumballs remaining is 100 gumballs - 40 gumballs = 
<gadget id="calculator">100-40</gadget>
<output>60</output>
60 gumballs.

<result>60</result>