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