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