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