Michael's class held a food drive for the holidays. There are a total of 29 students in his class. On average, each boy and girl bought 3 cans of food apiece. If the class brought in a total of 87 cans of food, how many boys and how many girls are in the class ?