Adult tickets to a play cost $24. Tickets for children cost $18. Tickets for a group of 13 people cost $282. Write and solve a system of equations to find how many children and how many adults were in the group.