"Li Hong is twenty-two. 5 points, Wang Wei scored 22.5 points. " Then the sum of their math scores remains the same.
"The score ratio between them is 5: 7", that is, Li Hong accounts for 5/ 12 of the total score and Wang Wei accounts for 7/ 12 of the total score.
Then the sum of their math scores is: 22.5 ÷ (5/9-5/12) =162 (points).
Then Li Hong's math score is: 162×5/9=90 (points).
Wang Wei's math score is: 162×4/9=72 (points).
Li Hong got 90 points in math and Wang Wei got 72 points in math.
I hope I can help you and adopt it.