Let the number of boys = x
Average score of boys = 71
Total score of boys = 71x
Let the number of girls = y
Average score of girls = 73
Total score of girls = 73 y
According to the question,
Average score=Total averageTotal number of students
⇒71.8=71x+73yx+y
⇒71.8x+71.8y=71x+73y⇒0.8x=1.2y
⇒xy=1.20.8=32
Hence, the ratio of the number of boys to the number of girls = 3 : 2.