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