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