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