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: scarlet and ivy book 3
Product list:
A: Scarlet and Ivy (3 Book Series)
B: The Curse in the Candlelight (Scarlet and Ivy, Book 5)
Answer: A,B