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