There are 16 people in a burning building. Some are adults and some are children. There are 50 legs in all. How many adults and children are there in all?