Solution :
The number of selections of 4 persons including $$A,B = {\,^6}{C_2}.$$
Considering these four as a group, number of arrangements with the other four $$= 5!.$$

But in each group the number of arrangements $$ = 2!\, \times 2!$$
∴ the required number of ways $$ = {\,^6}{C_2} \times 5!\, \times 2!\, \times 2!.$$