@ILL, it seems you have already “paired the triplets”, just need to order them within each other and order the 7. To order within each other, you can really narrow down the permutations by considering statistical analysis. Should any triplet give way more A than the others ? No !
Then to order them, look at the brick wall, if you can find some symmetry it can help…