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