You are selling tickets for a high school play. Student tickets cost $5 and general admission tickets cost $7. You sell 500 tickets and collect $3,000. How many of each type of ticket did you sell?