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