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