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