A school is having a big basket ball game this weekend against its rival school. They sold all their 150 available tickets and collected $939. Adult tickets were priced at $8 and student tickets were discounted to $5. How many of each type of ticket did they sell?​