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