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