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