Solve the problem.
A theater charges $50 per ticket for seats in section A, $40 per ticket for seats in section B, and $20 per ticket for seats in section C. For one play, 9,500 tickets were sold for a total of $335,000 in revenue. If 500 more tickets in section B were sold than the other two sections combined, how many tickets in each section were sold?