Five people shared a prize of $\$150$. Each one received a whole number of dollars and no two people received the same amount. If the largest share $\$40$ and smallest share was $\$20$ , what is the most money that the person with the third largest share could have received ?