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