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