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