Advance search between two content types that are linked by entity reference fields
In Views this called "Relationships".

Create view that show "Type A", then in filters add "Type B" to be also allowed.
Then add relation on field that you use for entity reference and made this relation required.

Now "Type B" content will be also displayed in view if related "Type A" is match search criteria.