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