40% of the marbles are of other colors because 100 - 20 - 40 = <<100-20-40=40>>40
The friend will on average get 2 other colored marbles because 5 x .4 = <<5*.4=2>>2
#### 2