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