We will call A and M the scores obtained by Alonzo and Miguel respectively
A + M = 54 (Alonzo and Miguel scored a total of 54 points) Equation 1
M = A + 4 (Miguel scored four more points than Alonzo) Equation 2
We will substitute the value of M for the second equation in the first equation.
A + A + 4 = 54
2A = 54 - 4
A = 50/2 = 25 points (Alonzo scored this.)
M = A +4 = 25+4 = 29 points (Miguel scored this.)
Answer : Alonzo scored 25 points and Miguel scored 29 points
Checking
A + M = 25 points + 29 points = 54 points Check !
Hope this helps!