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