Instruction: Given a query and a list of products denoted as A, B, C, ... with their titles, rank the products according to their relevance to the query. Output only a ranked list in which the most relevant product is at the top of the list.

Input:
Query: y740 legion 15 inch gaming laptop
Product list:
A: Lenovo IdeaPad Gaming 3 15 15.6" Laptop, 15.6" FHD (1920 x 1080) Display, AMD Ryzen 5 5600H Processor, NVIDIA GeForce GTX 1650, 8GB DDR4 RAM, 256GB SSD Storage, Windows 10H, 82K20015US, Shadow Black
B: Lenovo Legion Y740 15-Inch Iron Grey Laptop (81UH0001US) Intel i7-9750H, 16GB RAM, 256GB SSD, 15.6-inch FHD 1920x1080, NVIDIA GeForce RTX2070, Win10 Home, 720p Webcam, RGB Backlit KB, 230W SlimTip AC
Answer: B,A