Conditions from other cpt

I want to show the content from a specific tag (it has the name of the event) on a cpt called “events”:

the content is actually sponsors which belong to a library of sponsors CPT called “sponsors”.

I would like to know how I could create a condition to show only the “sponsors” belonging to a specific “event” based on the name (since the tag is exactly as the event name).

Is that possible?