Select the favoured rights (for multiple selections press STRG before selecting the next item) and drag them from group B to A or vice versa. If there isn't a group B selected or if no rights have been assigned to group B, all available rights are displayed initially.