the number of A and B are NA and NB