A reserve of 12 railway station masters is to be divided into two groups of 6 each one for day duty and the other for night duty. The number of ways in which this can be done if two specified persons A, B should not be included in the same group is