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