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