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