You can create a Trust between two Domains, if they belong to different forest and access the objects post successful trust implementation.
You can test the same by searching a User from Domain B by accessing ADUC from Domain A.
Also the result you require can be implemented.
You can proceed with below link or can google out for how to setup 2 way transitive trust between domains.
Sample Site :
https://www.oreilly.com/library/view/active-directory-cookbook/0596004648/ch02s18.html