Search Select Advanced 2 companies to search

I have a search select for shipping address.

I need to it filter to the currently selected company AND a sub contractor company that is set on the screen in another SSA.

Any ideas on how to accomplish this?