The correct formula should be $$\sum_{k = 2}^{n} \binom{n}{k}\binom{k}{2} = 2^{n - 2}\binom{n}{2}.$$ Hint. For the left side choose first the delegation and THEN appoint its leader and the deputy. For the right side choose first the leader and the deputy and THEN complete the rest of the team.