Adult tickets to a basketball game cost $5. Student ticket cost $1. A total of 2,814 was collected on the sale of 1,150 ticket. How many of each type of ticket were sold?