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: 16gb ram for macbook pro
Product list:
A: Apple MacBook Air with Apple M1 Chip (13-inch, 16GB RAM, 512GB SSD Storage) - Space Gray (Latest Model) Z125000DL
B: Apple MacBook Air with Apple M1 Chip (13-inch, 16GB RAM, 256GB SSD Storage) - Space Gray (Latest Model) Z124000FK
Answer: A,B