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