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