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