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