A minor league baseball team is selling students tickets for $10 each. 300 tickets are sold to students. The rest of the tickets are sold to adults at a cost of $20 each. The team collected $5,000 when all of the tickets were sold. Write and solve the equation to determine how many tickets were sold to the adults.