One weekend, 600 tickets were sold to a carnival for a total of $2400. If an adult's ticket costs $6 and a child's ticket costs $4, how many adults and how many children went to the carnival ?