Concept:Use the formula for combined average: total sum of ages divided by total number of students.Explanation:Let the number of boys be x.Number of girls =20.Average age of boys =20 years, so total age of boys =20x.Average age of girls =15 years, so total age of girls =15×20=300.Combined average age of the class is 18 years.Write the equation:x+2020x+300​=18Multiply both sides by x+20:20x+300=18x+360Simplify:20x−18x=360−3002x=60x=30So, the number of boys in the class is 30.Answer:Option C, 30