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