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