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