18 blue envelopes
18 - 16 = 2 yellow envelopes
2 x 5 = 10 green envelopes
10 + 2 + 18 = 30 envelopes in total.
Hope this helped!
Nate
30 envelopes in total.