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