Points rules of football match The problem is: the scoring rules of football match are as follows: 3 points for winning one game, 1 point for drawing one game and 0 point for losing one game. A certain team has participated in 12 games and got 21 points. Please judge how many wins, draws and losses the team has

Points rules of football match The problem is: the scoring rules of football match are as follows: 3 points for winning one game, 1 point for drawing one game and 0 point for losing one game. A certain team has participated in 12 games and got 21 points. Please judge how many wins, draws and losses the team has

The countable equation is as follows
3x+y=21
X + y + Z = 12 (x is winning, y is flat, Z is negative)
Then y = 12-x-z, substituting, 2x = 9 + Z
So, z = 1, x = 5, y = 6, satisfy the condition
Z = 3, x = 6, y = 3
Z = 5, x = 7, y = 0