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