At a theater, the admission price for children is $4 and the admission price for adults is $7. The total amount the theater collects in admissions for the day is $1782. The total number of visitors is 294. Let x be the number of children and let y be the number of adults.