A group of children and their parents went to the skating rink.There were a total of 30 people in the group, The cost for each adult was $12 and the cost for each child was $8. The total amount paid was $280. Let A represent the number of adults and C represent the number of children.