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