For the xlookup use
Formula: copy to clipboard
=XLOOKUP($B27,$B$3:$B$9,C$3:C$9)