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