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: mary beth davis
Product list:
A: Beauty and the Billionaire: A Dirty Fairy Tale (Dirty Fairy Tales Book 1)
B: Good Mourning: Comforting Tales From One of America's Top Psychic Mediums (Volume Book 1)
Answer: B,A