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