Alvin needs to harvest 90/3= <<90/3=30>>30 coconuts to earn $90.
Therefore, the total number of trees that he has to harvest is 30/5= <<30/5=6>>6.
#### 6