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