Move files to the most recently created folder

I have two items that I would like moved to the same folder when downloaded. The first rule (operating successfully) triggers based on attributes of the first file (contents contain, contains match) and processes the file by renaming it based on the found attributes and then moves it into a subfolder created by its attributes. I would like the second file to be moved and renamed to the same folder. However, the folder that both files need to be moved to changes based on the first files attributes. Thus, I need a "move to folder" option that allows me to specify something like "last changed folder" so that I can move it to the correct folder and rename it based on that folder name. Is there such an option? If not, is there a way that I can combine these two things into a single action where the name and folder would be in the same Hazel rule?
Example of Problem:
File A
File B
File A is searched, renamed, and moved to a subfolder based on its attributes
File B is downloaded and triggered based on its attributes and needs to be moved to the same folder as File A (but this folder is different and depends on the attributes of File A)
See original rule for File A at this link (this rule does not incorporate File B but needs to):
https://www.dropbox.com/s/oq03jayall6g7 ... M.png?dl=0
Any guidance on this problem is greatly appreciated. This is my first post to this group.
Brad
Example of Problem:
File A
File B
File A is searched, renamed, and moved to a subfolder based on its attributes
File B is downloaded and triggered based on its attributes and needs to be moved to the same folder as File A (but this folder is different and depends on the attributes of File A)
See original rule for File A at this link (this rule does not incorporate File B but needs to):
https://www.dropbox.com/s/oq03jayall6g7 ... M.png?dl=0
Any guidance on this problem is greatly appreciated. This is my first post to this group.
Brad