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