Numpy combinations without repetition. You have $3+5=8$ positions to fill with letters A or B.