Two teams of nine members each engage in tug-of-war

Two teams of nine members each engage in tug-of-war. Each of the first team’s members has an average mass of 68 kg and exerts an average force of 1350 N horizontally. Each of the second team’s members has an average mass of 73 kg and exerts an average force of 1365 N horizontally.

(a) What is magnitude of the acceleration of the two teams, and which team wins?
(b) What is the tension in the section of rope between the teams?