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