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