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