A junior football team has 15 players, with squad numbers from 1 to 15.
During training they split into two teams: a team of 7 and a team of 8, such that:
The sum of the squad numbers on team A is the same as the sum of the squad numbers on team B.
The sum of the squares of the squad numbers on team A is the same as the sum of the squares of the squad numbers on team B.
The sum of the cubes of the squad numbers on team A is the same as the sum of the cubes of the squad numbers on team B.
How was the squad split into the two teams?