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