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