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