Add the points of all the places for your team, the team with the lowest points wins. The ISAF rules book has a section devoted to teams racing rules.