If Pedro has three times more gumballs than Alicia, he has 3 * 20 gumballs = <<3*20=60>>60 gumballs more
In total, Pedro has 20 gumballs + 60 gumballs = <<20+60=80>>80 gumballs
When they put their gumballs together, the total number of gumballs in the bowl becomes 20 gumballs + 80 gumballs = <<20+80=100>>100 gumballs
Pedro takes out 40% of the gumballs which is 40/100 * 100 gumballs = <<40/100*100=40>>40 gumballs.
The number of gumballs remaining is 100 gumballs - 40 gumballs = <<100-40=60>>60 gumballs
#### 60