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