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