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