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