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