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