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