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