A county fair has different ticket prices for adults and children. The expression 6a + 5c represents the total cost in dollars of tickets for a adults and c children.

The Patel family spends $38 on tickets. How many adult tickets and child tickets do they buy?