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