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