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