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: free weights 5lbs pair
Product list:
A: BalanceFrom Rubber Encased Hex Dumbbell in Pairs, Singles or Set with Rack, (5LB Pair)
B: Amazon Basics Vinyl 5 Pound Dumbbells - Set of 2, Light Blue
Answer: B,A