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