Answer: The middle school has: 160 sixth graders, 180 seventh graders and and 140 eighth graders.
if in the sample of seventh graders were, chosen 9 of them, this is a 9/180= 0.05, or 5% of the total sample of seventh graders.
then, we also need to select a 5% of the total population of sixth graders for the survey, this is 0,05*160= 8, but remember that you need to select this 8 students at random.