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