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