ABA+BAB=111A+111B=111(A+B)=3x37(A+B) which divides 74 when A+B is even
## where A,B is an element of {1,2,3,4,5,6,7,8,9}
so (A,B)=(1,1) (1,3) (1,5) (1,7) (1,9) (3,...) (5,...) (7,...) (9,...) so there are 25 pairs where both A and B are odd
There is also (2,2) (2,4) (2,6) (2,8) (4,..) (6,..) (8,..) which is another 16 solutions
Total =41 pairs