Force applied by team A = FA = 100 + 120 + 170
= 390 N
Force applied by team B = FB = 130 + 150 + 155
= 435 N
As FB > FA, the resultant force is in the direction of FB. So, team B will win the tug of war.
Resultant force = FB - FA
= 435 - 390
= 45 N