There's no client mapping of names or text in any way, so it's up to interpretation. But, logically, the BPD one has to be the set with SMN on them. If you assume phalanx one goes to tanks, then you're left with DA/PDL for war/brd/nin because that's the only combo without pet stats.
QA/TA could be more open to interpretation, but the QA set has r.acc and the TA set doesn't. Makes more sense for r.acc to go to the group with RNG and COR than the one with THF.