A school is hosting a carnival for a fundraiser. Carnival tickets for children (C) cost 3$ and carnival tickets for adults (A) cost 6$. On the first day, the school sold a total of 30 tickets and raised $123 in total.