A family of 6 went to see a movie at the movie theater. The movie theater charges $9.00 for adult tickets and $5.00 for child tickets. The family spent a total of $38 on tickets. How many adult tickets and how many children's tickets were purchased?