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