There are 20 coins during the first hour. 30 coins are added during the second and third hours and 40 coins are added during the fourth hour. By the fourth hour there are 20+30+30+40 =<<20+30+30+40=120>>120 coins
The number of coins after giving 20 to her mother is 120-20=<<120-20=100>>100
#### 100