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