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