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