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