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