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