Adult tickets to a basketball game cost $5 and student tickets are $1. A total of $2,874 was collected when selling 1,246 tickets. How many of each type of ticket were sole