You are selling tickets for your schools championship basketball game. You have $1584 at the end of the night and have sold a total of 412 tickets. An adult ticket costs $5 and a student ticket costs $3. How many adult tickets and how many student tickets were sold? Show your work.