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