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