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