private double certificateWins(BaseballElimination division,
            Iterable<String> certificate, String eliminated) {
        SET<String> R = new SET<String>();
        for (String team : certificate) {
            R.add(team);
        }
        double result = 0;
        SET<String> checked = new SET<String>();
        for (String team1 : R) {
            result += division.wins(team1);
            checked.add(team1);
            for (String team2 : R) {
                if (checked.contains(team2)) {
                    continue;
                }
                result += division.against(team1, team2);
            }
        }
        result /= R.size();
        return result;
    }