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