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