For how many ordered pairs $(A,B)$ where $A$ and $B$ are positive integers is $AAA_7+BBB_7=666_7?$
We must have that
A + B = 6
So
(A , B)
1 5
5 1
4 2
2 4
3 3