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