Why not a third portal with the requirement being both A and F? Could be from a relationship or from a portal filter.
Perform a find for "A". Then return to find mode specify "F" and constrain the found set. This can be done manually or can be scripted.