Emma and her family went to the snack counter at the movie theater. The theater charges $4 for a box of candy and $2 for a medium drink. The family buys a total of 8 items for $24. How many boxes of candy did they buy and how many drinks did they buy? Boxes of candy Drinks bought​