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