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