adult tickets to a basketball game cost $5. a student ticket cost $1. a total of $2,847 was collected on the sale of 1,246 tickets. How many of each type of ticket were sold?