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: brown tweed pants
Product list:
A: H2H Mens Two-Tone Fine Fabric Herringbone Jackets Cardigans Brown US L/Asia XL (JLSK03)
B: Historical Emporium Men's Herringbone Tweed Dress Trousers 36 Brown
Answer: B,A