The cost of a ticket to the circus is $14.00 for children and $38.00 for adults. On a certain day, attendance at the circus was 700 and the total gate revenue was $19,400. How many children and how many adults bought tickets?