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