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