A theater charges $12 for adult tickets and $8 for child tickets. During a performance, the total number of tickets sold was 80, and the total revenue generated was $800. How many adult tickets were sold?