You are selling tickets to your school musical. Student tickets cost $2 and general admission tickets are $3. You sell 17 tickets and collect $42 how many of each type of ticket did you sell?