Oscar is selling tickets to a school play. Adult tickets cost $8 and student tickets cost $7. If he collected $245 by selling 34 tickets, how many adult and student tickets did he sell?