This might be confusing way to solve this problem but I’ll do by best to explain, bear with me.
The larger matrix is a matrix made by considering each team won 5 games and lost 5 games as given in the question.
The smaller matrix is a matrix made by the given relationship between X Y AND Z.
The rows represent the win/loss of each team, 1: win and 0:loss.
Now I just tried finding the pattern of the smaller matrix on the larger matrix and figured out that each team created such a pattern with all the teams it won with and the first team it lost to after the win streak i.e 5 sets of 3 teams for each of the team thus making it a total of 55 sets! Eg: Team 1 makes the following sets: 1,2,7 1,3,7 1,4,7 1,5,7 1,6,7 (Each of these sets when plotted as a 3x3 matrix gives the same pattern as the smaller matrix in the above image, thus fulfilling the criteria)