There are 6 baskets on the table. Each basket has 9, 1, 4, 8, 2 and 7 apples. Liam chose fifth, John chose first, Sean chose sixth, Emma chose third, Olivia chose second, and Matt chose fourth. How many apples did Liam and Olivia choose in total?