A store gives away gift bags during a sale. Of these gift bags, 50% are green, 20% are yellow, and 30% are blue. The average number of items in each green bag is 8. The average number of items in each yellow bag is 5. The average number of items in each blue bag is 8. What is the average number of items in all the gift bags? Enter your answer as a decimal in the box.