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