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