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