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