Hello everyone, the title might be confusing but let me make it clearer with images. So, I have a flow where I take the responders email from Microsoft Forms, and then I put it into get user profile. After I put it into get user profile, I want to match that name with a name from one of the SharePoint lists I have, which has a bunch of names and their director's. So, whoever the user is, I want to find their director and then put their email inside a variable. Below are the images for what I have.
Sharepoint:

so, the image above shows that both staff name and director are person or group columns. And I try to match the display names for both and want the email of the director for the person who submitted the form.


So, in the image it is taking the responders email and getting the user profile and that user profiles name is inside a variable. Then I try to get the matched user and then put that matched user's director inside a variable. However, I am pretty sure its wrong. So, any help would be appreciated.
Thanks in advance.