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