Instruction: Given a query and a list of products denoted as A, B, C, ... with their titles, rank the products according to their relevance to the query. Output only a ranked list in which the most relevant product is at the top of the list.

Input:
Query: black and white shower curtain
Product list:
A: TOMPOP Shower Curtain Gray African Triangle Stripes Boho Bohemian Herringbone Pattern Monochromatic Black White Modern Geometric Bathroom Waterproof Polyester Fabric 72 x 72 Inches Set with Hooks
B: BRIOFOX Shower Curtain Rod 43-73 Inches Matte Black, Never Rust and Non-Fall Down Spring Tension Rod, Stainless Steel
Answer: A,B