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