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