Instruction: Evaluate each product title in the given list, assess its relevance to the given query, and then arrange the products in descending order of relevance, with the most relevant product at the top of the ranked list.

Input:
Query: samsung galaxy s10 certified refurbished unlocked
Product list:
A: Samsung Galaxy S10, 128GB, Prism Black - Unlocked (Renewed Premium)
B: (Refurbished) SAMSUNG Galaxy S8 64GB Phone - 5.8in Unlocked Smartphone - Midnight Black
Answer: A,B