Assignment:
Adult tickets for a play cost $4 and child tickets cost $1. If there were 23 people at a performance and the theater collected $80 from ticket sales, how many children attended the play?
Provide complete and step by step solution for the question and show calculations and use formulas.