=IF(COUNTIF(B$2:B$44;L6)>0;LARGE(IF(B$2:B$44=L6;F$2:F$44);2);"")
Use this matrix formula