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