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