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