Let the total number of students be 100.
Also, let the mean score = N
According to the question,
20 x 80 + 25 x 31 + (100 - 20 - 25) x N = 100 x 52
⇒ 1600 + 775 + (55) x N = 5200
⇒ 55N = 5200 - 1600 - 775
∴ N = 2825/55 = 51.36 = 51.4%
So, mean score of remaining 55% is 51.4%