How does selection reconcile individual advantage with the good of the group?

How does selection reconcile individual advantage with the good of the group?