First of all, let's assume that the single digit of the math score is X and the average ten digits are Y.
The value range of x is 0, 1, 2, ..., 9.
The range of y is 1, 2, ..., 9.
According to the method of calculating the average score, the equation can be listed:
10y+5 =(79+85+8 1+90+90+x)/5
50y+25=425+x
50y=400+x
y=8+x/50
Since we assume that the problem is discussed in an integer range, X must be divisible by 50, and the value range of X is 0, 1, 2, ..., 9. So x=0, and then y=8.
So, math: 90, average score: 85.