Five people are standing in a queue, numbered from front to back. Their names are James, Lily, Noah, Olivia, and Max.