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