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