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