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