A church luncheon made $842. Adult tickets cost $10 each and children’s tickets cost $6 each. The number of children was 12 more than twice the number of adults. How many of each ticket were sold?