Instruction: Analyze the query and each product title. Sort the products in descending order based on their relevance to the query. The most relevant product should be at the top of the list, and output the ranked list.

Input:
Query: A powerful yet slim laptop which allows me to do all my normal note-taking plus a bit of light gaming on the side 
Product list:
A: 2019 Lenovo IdeaPad L340 15.6" FHD Gaming Laptop Computer, 9th Gen Intel Quad-Core i5-9300H up to 4.1GHz, 16GB DDR4 RAM, 512GB PCIE SSD, GeForce GTX 1650 4GB, Backlit Keyboard, Windows 10 Home
B: Putting Things In Order to help my loved ones when I'm gone
Answer: A,B