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