A local movie theater charges $12 for an adult ticket and $10 for a child's ticket. A group of 8 people spent a total of $86 on tickets to a movie. How many adults and how many children were in the group? Write a system of linear equations based on the description. Use X to represent the number of adults and Y to represent the number of children.