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