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