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