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