The first tree gives him 8 red apples because 20 x .4 = <<20*.4=8>>8
The second tree gives him 10 red apples because 20 x .5 = <<20*.5=10>>10
He gets 18 red apples because 10 + 8 = <<10+8=18>>18
#### 18