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