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