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