Hello F,

welcome to the forum. Try this for "Second":
Formula: copy to clipboard
{=IFERROR(SMALL(IF(A2=Sheet2!A:A,Sheet2!B:B,""),2),"")}


And this for "Third":
Formula: copy to clipboard
{=IFERROR(SMALL(IF(A2=Sheet2!A:A,Sheet2!B:B,""),3),"")}


Let me know if it works.

Cheers