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