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