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