Instruction: Evaluate the relevance of each product title in the input to the given query, and then sort the products in descending order of relevance, placing the most relevant product at the top of the ranked list.

Input:
Query: womens slacks elastic waist
Product list:
A: Soojun Womens Summer Elastic Waist Comfy Stretch Pull On Pants, Black, X-Large
B: Elastic Waist Extenders (6 Pack), Adjustable Waistband Expanders for Men and Women, Jeans Pants Button Extender Set by Johnson & Smith (Black)
Answer: A,B