Workflow execution order When a single push/pull triggers 2 workflows together

We have multiple directories in git in a single repo. Based on the paths of directroies, we have a workflow for each directory.
Suppose when somebody pushed a commit, which has the modifications of Folder A&B, but we have a dependecy like Workflow B has to run after A.

How can we acheive this…?