How to use XLOOKUP in Excel
Type =XLOOKUP(lookup, lookup range, return range) and press Enter. The cell shows the match.
Step by step

C2 says book and the list says Book. XLOOKUP still returns the price.

Select D2. The price lands in this cell. The formula bar shows what the cell holds before you type.

Type =XLOOKUP(C2, A2:A4, B2:B4). C2 is what to find, A2:A4 is the product list, and B2:B4 is the price to bring back.

Press Enter. Capital letters are ignored, so book returns 9.