The average score of Class A is 90.
The average score of Class B is 8 1.
The average grade of interested classes in mathematical modeling in this school is 40×90+50×8 190=85.
So the answer is: 85.