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