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: gift bags assorted sizes brown paper
Product list:
A: 24 Pieces Kraft Paper Party Favor Gift Bags with Handle Assorted Colors (Rainbow)
B: BagDream Kraft Paper Bags 5x3x8& 8x4.25x10, 50 Pcs Each, Paper Gift Bags with Handles Bulk, Kraft Bags, Shopping Bags, Craft Bags, Merchandise Bags, Party Bags, 100% Recyclable Brown Paper Bags
Answer: B,A