A community center sells a total of 304 tickets for a basketball game. An adult ticket costs ​$5. A student ticket costs ​$1. The sponsors collect ​$ 684 in ticket sales. Find the number of each type of ticket sold.