Final answer:
After calculating the respective ratios of boys to total students for both 7th and 8th grades (58 boys to 120 students), it is evident that both ratios are equal, thus the correct answer is d. Both ratios are equal.
Step-by-step explanation:
To compare the ratios of boys to the total students in each grade, we first calculate them. In the 7th grade, we have 62 girls and therefore 120 - 62 = 58 boys. The ratio of boys to total students in 7th grade is 58/120. In the 8th grade, there are 58 boys and the total number of students is also 120, so the ratio remains 58/120.
As both the 7th and 8th grades have 58 boys out of 120 students, their ratios of boys to total students are equal. So, the correct statement is d. Both ratios are equal.