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