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