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