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