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