Instruction: Rank the products A, B, C, ... based on their relevance to the provided query, and produce a ranked list with the most relevant product positioned at the top of the list.

Input:
Query: lucid 12 inch gel memory foam mattress
Product list:
A: LUCID 5 Inch Gel Memory Foam Dual-Layered-CertiPUR-US Certified-Firm Feel Mattress, Queen, White
B: Classic Brands Cool Gel Chill Memory Foam 14-Inch Mattress with BONUS Pillow |CertiPUR-US Certified |Bed-in-a-Box, Twin
Answer: B,A