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