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