Tickets to a school play cost $3 for students and $8 for adults. On opening night, $1000 was collected and 150 tickets sold. How many of each kind of ticket were sold? Write a system of equations and use substitution to solve.