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