A Broadway theater has 510 seats, divided into orchestra, main, and balcony seating. Orchestra seats sell for $140, main seats for $135, and balcony seats for $100. If all the seats are sold, the gross revenue to the theater is $62,700. If all the main and balcony seats are sold, but only half the orchestra seats are sold, the gross revenue is $55,700. How many of each kind of seat are there?