Tickets to the school musical are $5.00 for adults and $3.50 for students. If the total value of the tickets sold was $2517.50 and 100 more students bought tickets than adults, how many adults and students bought tickets?