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